inherit
Beware the ever changing head
33588
0
Nov 18, 2023 0:32:44 GMT -8
Ross
19,039
November 2004
elindir
|
Post by Ross on Jan 29, 2006 15:16:27 GMT -8
Global FooterWhat this code does is makes it so that each user only has their signature displayed once per page, the last occurance of it. <script type="text/javascript"> <!-- /* only show last occurance of a signature on each page - ross*/ if(location.href.match(/ion=(display|gotopost)/)) { var td = document.getElementsByTagName('td'); var us = []; for(i=td.length-1; i>4; i--) { if(td.item(i).colSpan == '3' && td.item(i).vAlign == 'bottom') { var username = td.item(i).parentNode.parentNode.parentNode.parentNode.parentNode.getElementsByTagName('a').item(2).href.split(/user=/)[1]; if(us[username]) td.item(i).lastChild.style.display = 'none'; us[username] = 'true'; } } } //--> </script>If you would rather it only show on the first occurance rather than the last, replace the purple line with this: for(i=4; i<td.length; i++) {July 2, 2001: Changed item(1) to (2) ie: username is the third anchor tag item(2)--Tumbleweed
|
|