trill
New Member
Posts: 1
|
Post by trill on Feb 22, 2009 2:57:15 GMT
Can anyone help me find the dynamic PM menu v2? I googled it and this site came up, but I couldn't find it. Thank you!
|
|
|
Post by gray929 on Feb 23, 2009 5:00:27 GMT
Global Headers
<script type="text/javascript"> <!-- // Dynamic PM Menu Version 2 // Copyright SkyStrife (Chase Geigle) 2005
var pmnonew = "URL TO IMAGE"; // New PM's image var pmnew = "URL TO IMAGE"; // No new PM's image
var oT = document.getElementsByTagName("TABLE")[0]; var td = document.getElementsByTagName("TD")[2].innerHTML; var pmmenu = ''; pmmenu += '<table width="100%" height="100%" cellspacing="0" cellpadding="4" id="content" style="display:none;"><tr><td align="center" colspan="5" width="100%">'; if(td.match(/(\d+)\smessa(ge|ges)<\/a>,\s(\d+)(\sare|\sis)\snew./i)){ pmmenu += '<font size="1">You have '+RegExp.$1+' messa'+RegExp.$2+', '+RegExp.$3+RegExp.$4+' new.</font>'; pmmenu += '</td></tr><tr><td align="center" width="15%"><font size="1"><a href="/index.cgi?action=pm">Inbox</a></font></td>'; pmmenu += '<td align="center" width="15%"><font size="1"><a href="/index.cgi?action=pm&view=2">Outbox</a></font></td>'; pmmenu += '<td align="center" width="25%"><font size="1"><a href="/index.cgi?action=pmbackup">Backup Messages</a></font></td>'; pmmenu += '<td align="center" width="20%"><font size="1"><a href="/index.cgi?action=pmprefs">Preferences</a></font></td>'; pmmenu += '<td align="center" width="25%"><font size="1"><a href="/index.cgi?action=pmsend">New Message</a></font>'; } else { pmmenu += '<font size="1">You must <a href="/index.cgi?action=login">login</a> or <a href="/index.cgi?action=register">register</a> to use this feature.</font>'; } pmmenu += '</td></tr></table>'; var pmrow = oT.insertRow(-1); pmrow.style.display="none"; var pmcell = pmrow.insertCell(0); pmcell.className="windowbg"; pmcell.height="1" pmcell.id="thinger"; pmcell.innerHTML = pmmenu; var pmbdiv = document.createElement("div"); pmbdiv.align="center"; var pmbimg = document.createElement("img"); if(td.match(/0\sare\snew/i) || td.match(/welcome/i)){ pmbimg.setAttribute("src",pmnonew); } else { pmbimg.setAttribute("src",pmnew); } pmbimg.setAttribute("border","0"); var pmlink = document.createElement("a"); pmlink.setAttribute("href","javascript:hideshow();"); pmlink.appendChild(pmbimg); pmbdiv.appendChild(pmlink); oT.parentNode.insertBefore(pmbdiv, oT.nextSibling);
var speed = 4; var hiding = "no"; var height = 40;
function hideshow(){ var hider = document.getElementById("thinger"); var content = document.getElementById("content"); if(hiding=="no"){ hiding="yes"; if(hider.parentNode.style.display=="none"){ hider.parentNode.style.display=""; show(); } else { content.style.display="none"; hide(); } } } function hide(){ var hider = document.getElementById("thinger"); var content = document.getElementById("content"); if(hider.height > speed){ hider.height = hider.height - speed; setTimeout("hide()",10); } else { hider.height="1"; hider.parentNode.style.display="none"; content.style.display="none"; hiding="no"; } } function show(){ var hider = document.getElementById("thinger"); var content = document.getElementById("content"); if(hider.height < height){ hider.height = Math.floor(hider.height) + speed; setTimeout("show()",10); } else { hider.height = height; content.style.display=""; hiding="no"; } } //--> </script>
|
|
RogerT
New Member
Deceptakonz rule.........................
Posts: 1
|
Post by RogerT on May 17, 2009 6:37:47 GMT
Thanx for posting this script again, I too was searching for it but couldn't find it. I used to use this on another proboards I used to have until someone hacked it and destroyed my board.
Thanx again #halo.gif#
|
|