Smangii Texture
  member is offline
Joined: Apr 2006 Posts: 88
|  | Clik-It PM Bar « Thread Started on May 21, 2006, 6:37am » | |
Wee...in a coding mood  More practicing with PMing!
Location: Global Headers CrossBrowser: Yes Editing: NONE Repostable: Yes, with header intact Previews: Closed Preview | Open Preview | Live Preview Code:
Code:<div id="PM_BAR"> <!-- Smangii's Clik-It PM Bar [url]http://smangii.proboards78.com[/url] May be reposted as long as this header remains intact No editing required -->
<table align="center" class="bordercolor" width="420" cellpadding="3" cellspacing="1"> <tr><td width="18%" align="center" height="20" class="windowbg"> <a href="javascript:void(0);" onClick="document.getElementById('pm_apple').style.display='';">Check PMs »</a></td> <td id="pm_apple" align="center" border="1" class="windowbg" height="20" style="display: none;"> Please <a href="/index.cgi?action=login">Login</a> or <a href="/index.cgi?action=register">Register</a></td></tr></table> <script> var tdid = document.getElementsByTagName("td"); var pm_apple= document.getElementById("pm_apple"); if(tdid[2].innerHTML.match(/you have <.+?>(.+?) (message|messages)<.+?>, (\d+) (are|is) new./i)){ var new_inbox = RegExp.$3; var old_inbox = RegExp.$1; var user_name = pb_displayname; pm_apple.innerHTML = 'Hello '+user_name+'! You have <a href="/index.cgi?action=pm">'+new_inbox+'</a> new and <a href="/index.cgi?action=pm">'+old_inbox+'</a> old PMs';} </script></div><script type="text/javascript"> document.getElementsByTagName("td")[1].parentNode.insertBefore( if(td[i].className=="titlebg" && td[i].innerHTML.match(/Forum Name/i)){ document.getElementById("PM_BAR"), document.getElementsByTagName("td")[1].nextSibling); </script>
|
|
| Slightly Insane Graphics & Codes »
![[image]](http://i63.photobucket.com/albums/h131/smangiisigfx/My%20Sigs/718f813d.gif) |
|