inherit
Beware the ever changing head
33588
0
Nov 18, 2023 0:32:44 GMT -8
Ross
19,039
November 2004
elindir
|
Post by Ross on Jan 29, 2006 14:48:34 GMT -8
Global FooterThis adds the number of new private messages and a link to your inbox next to the nav tree at the top of the page. <script type="text/javascript"> <!-- /* new/no new pms in nav tree - ross support.proboards.com */ var td = document.getElementsByTagName('td'); if(pb_username != 'Guest') { for(i=0; i<td.length; i++) { if(td.item(i).width == '100%' && td.item(i).vAlign == 'top' && td.item(i).getElementsByTagName("a")[0].className == "nav") { var navHolder = document.createElement('div'); while(td.item(i).firstChild.nextSibling.nodeName.match(/^(a|br|font|#text)$/i)) { navHolder.appendChild(td.item(i).firstChild.nextSibling) } var pmTable = '<table width="100%" cellPadding="2"><tr><td width="60%" vAlign="bottom">'; pmTable += navHolder.innerHTML; pmTable += '</td><td width="40%" align="right" vAlign="bottom"><a href="?action=pm">'; td.item(2).innerHTML.match(/ (\d+) (are|is) new./) pmTable += (RegExp.$1 != '0')? RegExp.$1+' New Private Message'+((RegExp.$2 == 'are')?'s':'') : 'No New Private Messages'; pmTable += '</a></td></tr></table>'; navHolder.innerHTML = pmTable; td.item(i).replaceChild(navHolder, td.item(i).firstChild) break; } } } //--> </script>September 3, 2010: Made code compatible with the new optional ad/recent posts table at the top. ~ Jordan
|
|