Post by Moose on May 1, 2005 0:17:59 GMT
Sorry I don't have a preview. I don't have any images for it so tell if it doesn't work correctly. What does is put a PM marker between the banner and menu. There is one for guests to also login and will take them to the login page. There is also a pm center below the banner that will only display for members.
All headers:
All you need to edit is this:
Enjoy.
All headers:
<script type="text/javascript">
<!--
/*
PM Marker with PM Center below menu.
Coded by Moose.
Do not repost or edit.
Leave this notice intact.
*/
var guest = 'url to guest image bar';
var nonew = 'url to no new pms bar';
var one = 'url to one pm bar';
var newpm = 'url to new pms bar';
var td = document.getElementsByTagName('td');
var table = document.getElementsByTagName('table');
var pmbar = table[0].insertRow(1).insertCell(0);
pmbar.className = 'menubg';
if(td[2].innerHTML.match(/Welcome/i)){
pmbar.innerHTML = "<a href='/index.cgi?action=login'><img src=' "+guest+" ' border='0'></a>"
} else if(td[2].innerHTML.match(/0 are new/i)){
pmbar.innerHTML = "<a href='/index.cgi?action=im'><img src=' "+nonew+" ' border='0'></a>"
} else if(td[2].innerHTML.match(/1 is new/i)){
pmbar.innerHTML = "<a href='/index.cgi?action=im'><img src=' "+one+" ' border='0'></a>"
} else {
pmbar.innerHTML = "<a href='/index.cgi?action=im'><img src=' "+newpm+" ' border='0'></a>"
}
if(td[2].innerHTML.match(/Welcome/i)){
} else {
var pmcenter = table[3].insertRow(1).insertCell(0);
pmcenter.className = 'menubg';
pmcenter.innerHTML="<center><font size =1>[<a href='index.cgi?action=imsend'>Compose new IM</a>] [<a href='index.cgi?action=im'>Inbox</a>] [<a href='index.cgi?action=im&view=outbox'>Outbox</a>] [<a href=index.cgi?action=immarkallread'>Mark IMs as read</a>] [<a href='index.cgi?action=imprefs'>Preferences</a>]"
}
//-->
</script>
All you need to edit is this:
var guest = 'url to guest image bar';
var nonew = 'url to no new pms bar';
var one = 'url to one pm bar';
var newpm = 'url to new pms bar';
Enjoy.