|
Post by Reverse Blade on Sept 7, 2012 3:34:07 GMT
This is actually the first javascript code I ever created. Made over 4 years ago! It works fine and everything! PreviewUsername: guest Password: guest1 GLOBAL HEADERS <script type="text/javascript"> <!-- //Code by Retribution //Thanks to Tricky
//Edit Below //0 is above banner //1 in inbetween banner and menu //2 under menu butttons var algins = "2"
//Dont edit below
TD = document.getElementsByTagName("td")[2]; table = document.getElementsByTagName("table")[0]; row = table.insertRow(algins).insertCell(0);
if(pb_displayname == "Guest"){ row.innerHTML = "<table class='windowbg' width='100%'><tr><td>Please <a href='index.cgi?action=login'>Login</a> or <a href='index.cgi?action=register'>Register</a></font></td></tr></table>"; } else { user = (TD.innerHTML.match(/Hey, (.+?),/i)) ? RegExp.$1:invalid; pms = (TD.innerHTML.match(/(\d+) (are|is) new/i)) ? RegExp.$1:invalid; row.innerHTML = "<table class='windowbg' width='100%'><tr><td><font size='2'>Hello " + user + "! You have <a href='index.cgi?action=pm'><b>"+ pms +"</b></a> new messages.</font></td><td valign='right'><a href='index.cgi?action=pm&view=1'>Inbox</a> | <a href='index.cgi?action=pm&view=2'>Outbox</a> | <a href='index.cgi?action=pmsend'>New Message</a> | <a href='index.cgi?action=pmbackup'>Backup Messages</a> | <a href='/index.cgi?action=pmprefs'>Preferences</a></td></tr></table>"; }
//--> </script>
|
|
|
Post by ≈April on Sept 7, 2012 14:27:50 GMT
Psst, the login information isn't working for the preview.
|
|
|
Post by Reverse Blade on Sept 7, 2012 15:17:01 GMT
Whops, new login info up. Thanks.
|
|
|
Post by black1star7 on May 28, 2020 16:26:03 GMT
Whops, new login info up.
|
|