»
EnglishFrenchVietnamese

Print - Change title when onmouseover - JavaScriptBank.com

Full version: jsB@nk » Status » Status » Change title when onmouseover
URL: https://www.javascriptbank.com/change-title-when-onmouseover.html

Change title when onmouseover © JavaScriptBank.comThe script will change title when user drag mouse on link.

Full version: jsB@nk » Status » Status » Change title when onmouseover
URL: https://www.javascriptbank.com/change-title-when-onmouseover.html



JavaScript
<SCRIPT language=JavaScript>     <!--     // Written   bye Anonymous     // License is granted if and only if this entire     // notice is included. By Damian Nix.     function makeArray(n) {       this.length = n;     }     function stopBanner() {       if (bannerRunning)         clearTimeout(timerID);       bannerRunning = false;     }     function startBanner() {       stopBanner();       showBanner();     }     function showBanner() {       var text = ar[currentMessage];       if (offset < text.length) {         if (text.charAt(offset) == " ")           offset++;                                var partialMessage = text.substring(0, offset + 1);         window.status = partialMessage;         offset++;         timerID = setTimeout("showBanner()", speed);         bannerRunning = true;       } else {         offset = 0;         currentMessage++;         if (currentMessage == arlength)           currentMessage = 0;         timerID = setTimeout("showBanner()", pause);         bannerRunning = true;       }     }     var speed = 100 // decrease value to increase speed (must be positive)     var pause = 1000 // increase value to increase pause     var timerID = null;     var bannerRunning = false;     var currentMessage = 0;     var offset = 0;     var arlength = 3; // number of messages (to solve an NS2 bug)     var ar = new makeArray(arlength); // number of messages     ar[0] = "This is a \"T-banner,\" written by Damian Nix.";     ar[1] = "Don't forget to copy the onLoad event handler.";     ar[2] = "Visit JavaScriptBank.com for new scripts"     // -->     </SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<BODY onload=startBanner()><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->