Mr. Boeing
New Member
I will make you think. Cause I am a smily!
Posts: 75
inherit
124214
0
Oct 5, 2008 23:13:19 GMT -8
Mr. Boeing
I will make you think. Cause I am a smily!
75
May 2008
mrboeing
|
Post by Mr. Boeing on May 12, 2008 11:34:51 GMT -8
Okay, I got bored so I decided to make a code. Name: Top Pm bar V1 Preview: HereDiscription: This is a bar on top of your welcome table. It is really good if you have a large logo image. Enjoy! Put it in the GLOBAL HEADERS! <script> /* Top Pm Bar V1 Created by Fastheart This code is copyrighted 2008 by Fasthearts Coding Corperation and http://mywarriorcat.proboards81.com/index.cgi? */ var user = pb_displayname var get = document.getElementsByTagName("TD") get[2].style.display="none" var guestMessage = "Welcome guest, Please <a href='index.cgi?action=login'>Login</a> or <a href='index.cgi?action=register'>Register</a>" var pmNew = get[2].innerHTML.split(' are new')[0].split(',')[3] var memberMessage = '<center>Welcome <a href="/index.cgi?action=viewprofile">'+user+'</a>, You Have <a href="/index.cgi?action=pm">'+pmNew+' New Message(s)</a></center>' var pmBar = document.getElementsByTagName("table")[0].insertRow(0) var pmCell = pmBar.insertCell(0) pmCell.className="catbg" pmCell.innerHTML = memberMessage if(get[3].innerHTML.match(/Guest/i)){ pmCell.innerHTML = '<center>'+guestMessage+'</center>' } </script>
enjoy!
|
|