Post by FireIndy on Dec 2, 2005 23:41:25 GMT
Code Description: Pm Table That Blinks when you have a new pm. Displays messages for guests, when you get a new pm, and if you dont have any new pm's.
Code Placement: Main Header
Edit: The Red
Green: Those 2 colors must be the same. But you can still modify them, they dont have to be green.
! Do not add the word "messages" after you modify the messages. It is later on in the code. The word is clickable and will take your PM's.!
Preview - No New Pm's
<!-- Made By FireIndy, Do Not Repost Without Permission -->
<script type="text/javascript">
<!--
var ttd=document.getElementsByTagName('td');
var newPmMessage="You have new private ";
var oldPmMessage="You have no new private ";
var guestMessage="Welcome, guest.";
if(ttd[2].innerHTML.match(/guest/i)){
document.write('<center><table width="500" border="1" class="windowbg"><tr><td>'+guestMessage+' Please <a href="index.cgi?action=login">Login</a> or <a href="index.cgi?action=register">Register</a></tr></table></td></table></center>')
}else{
if(ttd[2].innerHTML.match(/0 are new/i)){
document.write('<center><table width="500" border="3" class="windowbg"><tr><td>'+oldPmMessage+'<a href="index.cgi?action=pm">messages.</a></tr></table></td></table></center>')
} else {
function flanuts(){
if (!document.all)
return
if (flash.style.borderColor=="green")
flash.style.borderColor="red"
else
flash.style.borderColor="green"
}
setInterval("flanuts()", 500)
document.write('<center><table id="flash" width="500" border="3" class="windowbg"><tr><td>'+newPmMessage+'<a href="index.cgi?action=pm">messages</a>.</tr></table></td></table></center>')
}}
-->
</script>
Code Placement: Main Header
Edit: The Red
Green: Those 2 colors must be the same. But you can still modify them, they dont have to be green.
! Do not add the word "messages" after you modify the messages. It is later on in the code. The word is clickable and will take your PM's.!
Preview - No New Pm's
<!-- Made By FireIndy, Do Not Repost Without Permission -->
<script type="text/javascript">
<!--
var ttd=document.getElementsByTagName('td');
var newPmMessage="You have new private ";
var oldPmMessage="You have no new private ";
var guestMessage="Welcome, guest.";
if(ttd[2].innerHTML.match(/guest/i)){
document.write('<center><table width="500" border="1" class="windowbg"><tr><td>'+guestMessage+' Please <a href="index.cgi?action=login">Login</a> or <a href="index.cgi?action=register">Register</a></tr></table></td></table></center>')
}else{
if(ttd[2].innerHTML.match(/0 are new/i)){
document.write('<center><table width="500" border="3" class="windowbg"><tr><td>'+oldPmMessage+'<a href="index.cgi?action=pm">messages.</a></tr></table></td></table></center>')
} else {
function flanuts(){
if (!document.all)
return
if (flash.style.borderColor=="green")
flash.style.borderColor="red"
else
flash.style.borderColor="green"
}
setInterval("flanuts()", 500)
document.write('<center><table id="flash" width="500" border="3" class="windowbg"><tr><td>'+newPmMessage+'<a href="index.cgi?action=pm">messages</a>.</tr></table></td></table></center>')
}}
-->
</script>