|
Post by Disciple on Jul 31, 2005 18:23:15 GMT -8
I am looking for a code that will add a pm image in the left hand side of the menu bar i seen one code for it but it does do what it saids it does and i cant find the maker of it so i thought this would be the best place to ask
|
|
|
Post by CD on Jul 31, 2005 21:24:22 GMT -8
Is the code here at Hatake? Post the link.
|
|
|
Post by Disciple on Jul 31, 2005 21:34:14 GMT -8
|
|
|
Post by CD on Jul 31, 2005 21:48:17 GMT -8
Try placing it above the code to remove Menu Spacing.
|
|
|
Post by Disciple on Jul 31, 2005 21:49:34 GMT -8
nope doesnt do anything
|
|
|
Post by CD on Jul 31, 2005 22:12:39 GMT -8
Ok, I'm going to make something quickly, please wait.
|
|
|
Post by Disciple on Jul 31, 2005 22:13:34 GMT -8
thank you very much
|
|
|
Post by CD on Jul 31, 2005 22:23:08 GMT -8
<script> // PM Bar for Disciple by CDDude229 var aTD = document.getElementsByTagName("TD");
// Guest links to login, if you want register, let me know. var guest = "http://img19.imageshack.us/img19/3752/loginmessages2pi.gif"; var no_new = "http://img82.imageshack.us/img82/8712/nomessages0ah.gif"; var new_pm = "http://img82.imageshack.us/img82/3236/messages8zv.gif";
// No need to edit below here. if(aTD[2].innerHTML.match(/Welcome/i)){ var data = "<a href='/index.cgi?action=login'><img src='"+guest+"' border='0'></a>";
} else if(aTD[2].innerHTML.match(/0 are new/i)){ var data = "<a href='/index.cgi?action=pm'><img src='"+no_new+"' border='0'></a>";
} else { var data = "<a href='index.cgi?action=pm'><img src='"+new_pm+"' border='0'></a>";
}
aTD[5].innerHTML="<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td align='left'>"+data+"</td><td align='right'>"+aTD[4].innerHTML+"</td></tr></table>"; </script>
By the way, nice template.
|
|
|
Post by Disciple on Jul 31, 2005 22:27:34 GMT -8
thanks but that code does the same thing and it mess with the menu grad alittle also Edit :I fixed the menu grad problem
Last Edit: Jul 31, 2005 22:31:04 GMT -8 by Disciple
|
|
|
Post by CD on Jul 31, 2005 22:34:11 GMT -8
Not entirely sure what's wrong... Its one of those things you have to try again and again to get right. 5 bucks says Marty gets it first try. Anyway, try this. x.x
<script> // PM Bar for Disciple by CDDude229 var aTD = document.getElementsByTagName("TD");
// Guest links to login, if you want register, let me know. var guest = "http://img19.imageshack.us/img19/3752/loginmessages2pi.gif"; var no_new = "http://img82.imageshack.us/img82/8712/nomessages0ah.gif"; var new_pm = "http://img82.imageshack.us/img82/3236/messages8zv.gif";
// No need to edit below here. if(aTD[2].innerHTML.match(/Welcome/i)){ var data = "<a href='/index.cgi?action=login'><img src='"+guest+"' border='0'></a>";
} else if(aTD[2].innerHTML.match(/0 are new/i)){ var data = "<a href='/index.cgi?action=pm'><img src='"+no_new+"' border='0'></a>";
} else { var data = "<a href='index.cgi?action=pm'><img src='"+new_pm+"' border='0'></a>";
}
aTD[5].innerHTML="<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td align='left'>"+data+"</td><td align='right'>"+aTD[5].innerHTML+"</td></tr></table>"; aTD[5].parentNode.parentNode.cellPadding="0"; aTD[5].parentNode.parentNode.cellSpacing="0";
</script>
<style> .menubg { background-image: url(http://gbhd.iycatacombs.com/grads/menu.gif); } </style>
|
|