|
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(1).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 purple = name of default on icon EDIT - Changed item(0) to item(1) - Milky Way
Last Edit: Jun 30, 2006 21:11:33 GMT by Chris
|
|
|