Ross
eCreations Staff
Posts: 1,768
|
Post by Ross on Sept 15, 2006 8:59:56 GMT
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
|
|