iAlex
Junior Member
Posts: 73
|
Post by iAlex on Dec 17, 2007 6:19:22 GMT -5
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. Open Source. <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>
|
|