|
Post by CrAzY_J on Jul 21, 2005 9:34:13 GMT -8
description: changes the on|off icon of whichever board you wish, just change the red part for what board you want to switch the on|off icon off. Main Footers ONLY
<script type='text/javascript'> /*different on/off icons created by naruto|recoded by CrAzY_J Do not redistribute without permission of creator*/
var TD=document.body.getElementsByTagName("td"); function switchy(boardid,on,off){ for(t=0;t<TD.length;t++){ if(TD.item(t).width=="8%" && TD.item(t+1).width=="66%" && TD.item(t+1).getElementsByTagName("a").item(0).href.match("board="+boardid)){ if(TD.item(t).innerHTML.match(/on\.(gif|jpg|png)/i)) TD.item(t).innerHTML="<img src='"+on+"'>"; else TD.item(t).innerHTML="<img src='"+off+"'>"; } } }
switchy("boardid","url to on image","url to off image") switchy("boardid","url to on image","url to off image") switchy("boardid","url to on image","url to off image") </script>
red = board if to switch on/off image orange = url to on icon blue = url to off icon
Last Edit: Sept 3, 2005 12:42:48 GMT -8 by CrAzY_J
|
|