Sickboy
Positive Poster
*vomits on shoe*curMood[Aggravated]
Posts: 118
|
Post by Sickboy on Nov 13, 2003 16:10:12 GMT -5
creates a popup that tells you when you have a new message
<script language="JavaScript1.2"> /* © Patrick Clinger 2003 All Rights Reserved.
This script may ONLY be used on message boards hosted by ProBoards.com. Any other site found to be utilizing this code shall be in violation of my copyright.
This copyright notice must remain in tact when using this script. */
var IE6 = (document.all) ? 1 : 0;
function findit() { if(IE6) if(window.document.body.createTextRange().text.match(/(\d+) are new./)) if(RegExp.$1 != 0) newmessage(RegExp.$1); if(window.document.body.createTextRange().text.match(/(\d+) is new./)) if(RegExp.$1 != 0) newmessage(RegExp.$1); }
function newmessage(num) { if(IE6) { if (num == '1') { ms = 'Message'; tm = 'it'; } else { ms = 'Messages'; tm = 'them'; } var gotoim = confirm('You Have '+num+' New Instant '+ms+'\n\nWould you like to view '+tm+'?'); if (gotoim) { location = '/?action=im'; } } }
if (location.href.indexOf('action=') == -1 && location.href.indexOf('action=login') == -1) { findit(); } </script>
|
|
|
Post by Josh on Nov 13, 2003 16:20:25 GMT -5
Lance please use this becuase I totally forgot about my pm's until I read this thread and I had like 5 new ones that were really old.
|
|
|
Post by Mr. Hendrickson™ on Nov 13, 2003 17:20:01 GMT -5
Okay Ill do this. So does this go in my headers?
|
|
|
Post by Daemon Rose on Nov 13, 2003 17:27:03 GMT -5
Lance you sent me a message and this code didnt work did you put it into the headers or footers?
|
|
|
Post by Mr. Hendrickson™ on Nov 13, 2003 17:27:41 GMT -5
I put it in both and still doesnt work.
|
|
Sickboy
Positive Poster
*vomits on shoe*curMood[Aggravated]
Posts: 118
|
Post by Sickboy on Nov 13, 2003 18:10:24 GMT -5
put it in the header of the home page...should work...I use it on mine
|
|
|
Post by Mr. Hendrickson™ on Nov 13, 2003 19:50:27 GMT -5
Yeah I did and it didnt work at all...
|
|
Sickboy
Positive Poster
*vomits on shoe*curMood[Aggravated]
Posts: 118
|
Post by Sickboy on Nov 13, 2003 23:19:49 GMT -5
sorry dude..not sure what the problem might be.
|
|
|
Post by Robert on Nov 14, 2003 0:04:30 GMT -5
it works in the exhibition board....
|
|
|
Post by Mr. Hendrickson™ on Nov 14, 2003 11:57:12 GMT -5
I dont know why it doesnt work. Hey Robert do you have the new and old pm icon things from the other board that matches what we have here
|
|
|
Post by Pixie on Nov 14, 2003 23:46:52 GMT -5
it works in the exhibition board.... I have it in both the main header and the main footer, not sure if it is the same code as this one though.
|
|
|
Post by Robert on Aug 2, 2004 20:33:12 GMT -5
I added the code. I'll test it, and if it works. It will stay.
//Edit: I tested it, and it does NOT work. I shall remove it now.[#noedit]
|
|