1 [Invisionfree] MOD chớp màu khi có tin nhắn Sat Nov 24, 2012 2:24 pm
Admin Cp > Skinning & Styles > Board Wrappers > Header & Body > <% BOARD HEADER %>
- Code:
<script>
//New PM Flasher - By Markup
// Redistributed for Vn communities by all4elva.com
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="[color=red]Red[/color]";
flash();
}
}
function flash()
{
if(inbox.style.visibility=="hidden")inbox.style.visibility="visible";
else inbox.style.visibility="hidden";
setTimeout("flash()",500)
}
</script>