How do I use this code to highlight the PM/login box and flash new events (such as PM messages)???
Code:
<script language="Javascript" type="text/javascript">
function CybBlink() {
var blink = document.getElementsByTagName("BLINK");
for (var i=0; i<blink.length; i++) {
blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : ""; }
}
function CybSBlink() {
if (document.all) {
setInterval("CybBlink()",600); }
}
var cyb_pm_phrase = '<a href="private.php">Private Messages</a>: Unread <strong>1</strong>, Total 23.';
var cyb_pm_phrase_stripped = cyb_pm_phrase.replace('</a>:', '</a>:<span id="navbar_cybppenh"><blink> <span style="color:red;">').replace(',', '</span></blink>,');
with (document) {
write (cyb_pm_phrase_stripped);
}
vbmenu_register("navbar_cybppenh");
</script>
</span>
carrlos