hr2
inherit
-249684
0
Sept 7, 2024 15:56:02 GMT -8
hr2
0
January 1970
GUEST
|
Post by hr2 on Sept 30, 2005 4:00:14 GMT -8
allhorror.proboards50.comI would love to have that code where you put 'Hey Lucian,you have X new messages...' below the banner. ;D
|
|
Jim
Junior Member
![*](//storage.proboards.com/forum/images/stars/star.png)
Posts: 469
inherit
55957
0
Oct 21, 2005 17:11:58 GMT -8
Jim
469
August 2005
manson
|
Post by Jim on Sept 30, 2005 4:05:31 GMT -8
<script type="text/javascript"> /* Nova PM Bar v1.2 Coded by Infection X - (http://novacreations.proboards36.com/) This copyright must stay intact at all times This code must not be re-posted without permission from it's creator */ var TD=document.getElementsByTagName('TD') var iTab = document.getElementsByTagName("table")[3].insertRow(1) var iCell = iTab.insertCell(0) iCell.className="catbg" TD[2].style.display="none"
if(TD[2].innerHTML.match(/Hey, (.+?), you/i)){ var username = RegExp.$1 } if(TD[2].innerHTML.match(/0 are new/i)){ iCell.innerHTML="<center><font size =1><a href='/index.cgi?action=pm'>Greetings "+username+",You have no new Private Messages</a>" }else if(TD[2].innerHTML.match(/1 is new/i)){ iCell.innerHTML="<center><font size =1><a href='/index.cgi?action=pm'>1....2....Michael's comming for you "+username+",You have 1 new Private Message</a>." }else if(TD[2].innerHTML.match(/Guest/i)){ iCell.innerHTML="<center><font size =1>Welcome Victim, Please <a href='/index.cgi?action=login'>Login</a> or <a href='/index.cgi?action=register'>Register</a>" }else{ iCell.innerHTML="<center><font size =1><a href='/index.cgi?action=pm'>1....2....Michael's comming for you "+username+",You have a few new Private Messages</a>." } </script>
|
|
hr2
inherit
-249686
0
Sept 7, 2024 15:56:02 GMT -8
hr2
0
January 1970
GUEST
|
Post by hr2 on Sept 30, 2005 4:07:24 GMT -8
In Global Header or Footer,or Main Header or Footer?
|
|
Jim
Junior Member
![*](//storage.proboards.com/forum/images/stars/star.png)
Posts: 469
inherit
55957
0
Oct 21, 2005 17:11:58 GMT -8
Jim
469
August 2005
manson
|
Post by Jim on Sept 30, 2005 4:36:14 GMT -8
Either main or Global Header
|
|
inherit
31888
0
Aug 20, 2024 2:26:05 GMT -8
Pharmerphil
593
October 2004
pharmerphil
|
Post by Pharmerphil on Sept 30, 2005 5:39:38 GMT -8
allhorror.proboards50.comI would love to have that code where you put 'Hey Lucian,you have X new messages...' below the banner. ;D All due respect JJ, thats not exactly what the member asked: GLOBAL HEADERS<script type="text/javascript"> <!-- pmBar = document.getElementsByTagName('table')[0].insertRow(1).insertCell(0); pmBar.className='windowbg'
text = document.getElementsByTagName('td')[2].getElementsByTagName('font')[0].innerHTML text=text.replace(/Hey (.+?), you have (.+?) message/gi,'hey (.+?)') imdate = text.split(/<br>/i) pmBar.innerHTML='<table width="100%"><tr><td>'+imdate[0]+'</td><td align="right">'+imdate[1]+'</td></tr></table>'
document.getElementsByTagName('tr')[1].getElementsByTagName('td')[1].style.display='none' document.getElementsByTagName('font')[1].style.display='none' // --> </script>
|
|