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 Sept 16, 2006 13:13:15 GMT -8
Another one made for a request. What this lets you do is insert any HTML before the member names of certain member groups. Just edit/repeat the lines in bold being careful of the comma <script type="text/javascript"> var prefix = [ ["group1", "<img src='http://host.com'/> "], ["group2", "<img src='http://host.com'/> "], ["class Name", "Prefix"] // No comma on last line ];
var nLinks = document.getElementsByTagName("a"); for(a = 0; a < nLinks.length; a ++){ for(p = 0; p < prefix.length; p ++){ if(nLinks.item(a).className == prefix[0]){ if(nLinks.item(a).firstChild.nodeType == 3){ nLinks.item(a).firstChild.insertData(0, prefix [1]); } else { nLinks.item(a).firstChild.firstChild.insertData(0, prefix [1]); } } } } </script> Global Footer
|
|