ialex
New Member
Posts: 10
inherit
143112
0
May 29, 2010 13:09:41 GMT -8
ialex
10
July 2009
ialex
|
Post by ialex on Oct 2, 2007 21:48:36 GMT -8
Whenever a topic is locked, this code will put a strike through the subject of the topic title. You simply need to edit the red text at the top, with the last part of your locked image source: If you are using the default, there is no need to modify anything. Cross Browser. Global Footer. <script type="text/javascript"> <!--
/*Strike through Locked Topics - By iAlex - Open Source*/
var iTheLock="locked.gif"; //Locked Topic Icon
if(location.href.match(/board=/) && !location.href.match(/action/)){ var iTd=document.getElementsByTagName('td'); for(i=0;i<iTd.length;i++){ if((iTd.item(i).width=="43%"|iTd.item(i).width=="48%") && iTd.item(i).className.match(/windowbg$/) && iTd.item(i-1).width=="5%" && iTd.item(i-1).align=="center" && iTd.item(i-2).firstChild.firstChild.src.match(iTheLock+'$')){ iTd.item(i).getElementsByTagName('font').item(0).style.textDecoration='line-through'; } } }
//--> </script>
|
|