|
Post by tunescool on Aug 30, 2009 19:14:50 GMT -8
before i start screwing stuff up, where do i put it
|
|
|
Post by Wormopolis on Aug 30, 2009 19:33:08 GMT -8
just replace the whole code with this:
<script type="text/javascript"> <!--
// New/No new PM button in menu
// Text to show there are new private messages var newPM = "New PMs";
// Text to show there are no new private messages var noPM = "PMs";
var pmLink = document.createElement("a"); var pmCell = document.getElementsByTagName("td").item(2).innerHTML;
pmLink.href = "index.cgi?action=pm"; pmLink.className = "pmbutton";
if(pmCell.match(/you have <.+?>, (\d+) /i)){ pmfont=document.createElement('font'); switch(RegExp.$1){ case "0" : pmImg = document.createTextNode(noPM); break; case "1" : pmfont.style.color="00FF00"; pmfont.style.fontStyle="italic"; pmImg = document.createTextNode(newPM); break; default : pmfont.style.color="00FF00"; pmfont.style.fontStyle="italic"; pmImg = document.createTextNode(newPM); } pmfont.appendChild(pmImg); pmLink.appendChild(pmfont); document.getElementsByTagName("td").item(5).appendChild(pmLink); }
//--> </script>
|
|
|
Post by tunescool on Aug 30, 2009 19:48:33 GMT -8
works, thanks alot
|
|