1-.-SGTHLDMN-.1
New Member
i want the box in the navbar to flash in 2 different colors when a user has an unread messege how?
<div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
<script type="text/javascript"> vBmenu.register("notifications"); </script>
<div><span id="notifications"><a href="usercp.php">
<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); }
}
</script>
<span style="color:red;"><blink>Your Notifications</blink></span>
<img src="clear.gif" border="0" onload="CybSBlink();" />:</a> <strong>1</strong></span></div>
<script type="text/javascript"> vBmenu.register("notifications", 1); </script>
k_hunter said:Well, i knew of a way to make the "your notifications" words blink.
Open navbar template and search for:
Code:<div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div> <script type="text/javascript"> vBmenu.register("notifications"); </script>
replace this with:
Code:<div><span id="notifications"><a href="usercp.php"> <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); } } </script> <span style="color:red;"><blink>Your Notifications</blink></span> <img src="clear.gif" border="0" onload="CybSBlink();" />:</a> <strong>1</strong></span></div> <script type="text/javascript"> vBmenu.register("notifications", 1); </script>