I have this code that makes pm's flash, my buddy made this in java and now i have no clue were to put it. I was gonna share this if someone can tell me what template to put it in.
Quote:
<script>//
userLinks=document.getElementById('userlinks');
if(userLinks.innerHTML.match("Inbox"))
{
newMsg=false;
a=userLinks.getElementsByTagName("A");
for(i=0;i<a.length;i++)if(a[i].innerHTML.match(/Inbox\s\([0-9]+\)/)&&a[i].innerHTML.match(/[0-9]+/)>0)newMsg=i;
if(newMsg)
{
inbox=a[newMsg];
inbox.style.fontWeight="Bold";
inbox.style.color="Red";
flash();
}
}
function flash()
{
if(inbox.style.visibility=="hidden")inbox.style.vi sibility="visible";
else inbox.style.visibility="hidden";
setTimeout("flash()",500)
}
</script>
|