»
EnglishFrenchVietnamese

Print - Blinking Text script - JavaScriptBank.com

Full version: jsB@nk » Text » Animation » Blinking Text script
URL: http://www.javascriptbank.com/blinking-text-script.html

Blinking Text script © JavaScriptBank.comThis JavaScript is a simple layer based JavaScript that blinks any text. The script can be used to catch the attention of the user. The blinking speed can be adjusted by the variable blink_speed. Only works in MSIE.

Full version: jsB@nk » Text » Animation » Blinking Text script
URL: http://www.javascriptbank.com/blinking-text-script.html



JavaScript
<script language="JavaScript"><!-- Original:  Premshree Pillai (premshree@hotmail.com ) --><!-- Beginwindow.onerror = null; var bName = navigator.appName; var bVer = parseInt(navigator.appVersion); var NS4 = (bName == "Netscape" && bVer >= 4); var IE4 = (bName == "Microsoft Internet Explorer"  && bVer >= 4); var NS3 = (bName == "Netscape" && bVer < 4); var IE3 = (bName == "Microsoft Internet Explorer"  && bVer < 4); var blink_speed=100; var i=0; if (NS4 || IE4) { if (navigator.appName == "Netscape") { layerStyleRef="layer."; layerRef="document.layers"; styleSwitch=""; }else{ layerStyleRef="layer.style."; layerRef="document.all"; styleSwitch=".style"; }}//BLINKINGfunction Blink(layerName){ if (NS4 || IE4) {  if(i%2==0) { eval(layerRef+'["'+layerName+'"]'+ styleSwitch+'.visibility="visible"'); } else { eval(layerRef+'["'+layerName+'"]'+ styleSwitch+'.visibility="hidden"'); } }  if(i<1) { i++; }  else { i-- } setTimeout("Blink('"+layerName+"')",blink_speed);}//  End --></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<div id="prem_hint" style="position: relative; left: 0pt; visibility: hidden;" class="prem_hint"><font color="#ff0000"><b>JavaScriptBank.com</b></font></div><script language="javascript">Blink('prem_hint');</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->