|
Post by maxpower57 on Dec 23, 2004 20:01:41 GMT -8
wow im on a roll glows more and more as you get more new pms Footers
<script Language="javascript"> /*Created by Maxpower57 maxpower57.proboards37.com*/ var glowcolor =" ff0000"; var td = document.getElementsByTagName('td'); if(td[2].innerHTML.match(/action=im">(\d+) /i)) { var Total = RegExp.$1 } if(td[2].innerHTML.match(/<\/a>, (\d+) /i)) { var New = RegExp.$1 } var glow = +New td[0].innerHTML+="<span style='filter:glow(color="+glowcolor+",strength="+glow+");width:100%'>Total PMs: "+Total+" New: "+New+" | <A HREF='index.cgi?action=im' class='pmlink'>Check PMs</A> | <A HREF='index.cgi?action=imsend' class='pmlink'>Send a PM</A> | <A HREF=''index.cgi?action=imprefs' class='pmlink'>Config</A> | "; function login(item,item2) { var range = document.body.createTextRange(); range.collapse(true); if (location.href.indexOf("action=headersfooters") == -1 ) while (range.findText(item)) { range.text=item2; range.collapse(false); } } login("Total PMs: undefined New: undefined | Check PMs | Send a PM | Config | ","Please Login or Register"); </script>
pretty self explanitory Preveiw testpage57.proboards36.com/index.cgi?board=gpmbUsername: test password: test
Last Edit: Dec 23, 2004 20:10:16 GMT -8 by maxpower57
|
|
|
Post by ShadowyOne on Dec 24, 2004 10:01:32 GMT -8
What if you get like 200 PMs?
|
|
|
Post by maxpower57 on Dec 24, 2004 11:18:14 GMT -8
then you should check them it'll just glow alot the whole bar will be the color of the glow
|
|
Kaiya
New Member
Posts: 3
|
Post by Kaiya on Mar 13, 2005 13:49:26 GMT -8
I tried using it now it just says Total PMs: undefined New: undefined | Check PMs | Send a PM | Config |
It won't show the number. It only shows the word 'undefined'. Is there anything I can do to fix that?
|
|
|
Post by Kenshin on Mar 13, 2005 14:35:50 GMT -8
and I'd rather use the replace method instead of the range method so it would be Cross-Browser
|
|
|
Post by juanlheat on Mar 7, 2006 16:23:51 GMT -8
nice code
|
|