3
3
Сообщений 1 страница 5 из 5
Поделиться22009-07-23 20:49:06
<script type="text/javascript">
inColor("red", new Array("Андрюха", "Admin"))
inColor("blue", new Array("AmiRa", "Impuls 101"))
inColor("green", new Array("likka"))
inColor("gray", new Array("rps"))
inColor("yellow", new Array("Шмель", "Изя", "DART"))
function inColor(color, myarray){
var a=document.links
for(i=0;i<a.length;i++){
for(q=0;q<myarray.length;q++){
if(a[i].innerHTML==myarray[q]){
a[i].innerHTML="<span style=\"color: "+color+";\">"+myarray[q]+"</span>"
}}}}
</script>
Поделиться32009-07-23 20:49:26
<marquee scrollAmount=3 onmouseover=this.scrollAmount=0 onmouseout=this.scrollAmount=3 width=510 height=20>
.Тут текст.
</marquee>
Поделиться42009-07-23 20:50:03
var arr=document.getElementsByTagName("li")
i=0
while(arr[i] ){
//Вместо этой строчки вставить нужные Вам коды
i++
}
</script>
Поделиться52009-07-23 20:50:37
<script type="text/javascript">
var myforum="АДРЕС ВАШЕГО ФОРУМА"
var myforum1="http://"+myforum+"/profile.php?id=2"
if (document.getElementById('navpropfile').getElementsByTagName("a")[0].href!=myforum1)
{document.getElementById('massdeleter').style.display="none"}
document.getElementsByTagName("body")[0].onkeydown=stopAll
function stopAll()
{document.cookie="zebra=nefiga"}
if (document.cookie.indexOf("zebra=neutral")!=-1)
{ if (document.URL.indexOf("userlist.php")==-1)
{user()}
}}
var myforum2="http://"+myforum+"/userlist.php?show_group=-1&sort_by=num_posts&sort_dir=ASC"
function user()
{var windower=window.open(myforum2, "_self")
var users=document.getElementById('pun-main').getElementsByTagName("table")[0].rows
if ((users[1].getElementsByTagName("td")[3].innerHTML)*1==0)
{var locat="http://"+myforum+"/profile.php?section=admin&"+users[1].getElementsByTagName("a")[0].href.substr(users[1].getElementsByTagName("a")[0].href.indexOf("id="))+"&action=foo"
document.cookie="zebra=delete"
var windower=window.open(locat, "_self")}
else
{document.cookie="zebra=nefiga"}}
if ((document.cookie.indexOf("zebra=delete")!=-1)&&(document.URL.indexOf("action=foo")!=-1))
{if (!document.getElementsByName("delete_user_comply")[0])
{document.getElementsByName("delete_user")[0].click()}
else
{document.getElementById('fld1').click()
document.getElementsByName("delete_user_comply")[0].click()
document.cookie="zebra=neutral"
}
}
</script>
<input type="button" value="Удалить лишних" onclick="user()" id="massdeleter" />