Status Bar Text Effect

Written by @kerixa 21 August 2012

This code writes something in the status bar and moves it!

Code Snippet:

                                                
                                                <!-- this script is provided by https://www.javascriptfreecode.com coded by: Kerixa Inc. -->
<!-- TWO STEPS TO INSTALL WRITE AND SLIDE:

   1.  Paste the coding into the HEAD of your HTML document
   2.  Copy the onLoad event handler into the BODY tag  -->
<!-- STEP ONE: Copy this code into the HEAD of your HTML document  -->
<html>

<head><script LANGUAGE="JavaScript">

<!--Total Java Scripts 99 - Next Step Software-->

<!-- Begin
var Message="welcome***to***www.javascriptfreecode.com*****";
var place=1;
function scrollIn() {
window.status=Message.substring(0, place);
if (place >= Message.length) {
place=1;
window.setTimeout("scrollOut()",300); 
} else {
place++;
window.setTimeout("scrollIn()",50); 
   } 
}
function scrollOut() {
window.status=Message.substring(place, Message.length);
if (place >= Message.length) {
place=1;
window.setTimeout("scrollIn()", 100);
} else {
place++;
window.setTimeout("scrollOut()", 50);
   }
}
// End -->
</script>
<!-- STEP TWO: Add this onLoad event handler into the BODY tag  -->

<title>E:\scrolls\vertical2_.htm</title>
</head>

<body onLoad="scrollIn()">
<!-- Script Size:  1.09 KB  -->
<br />
</body>
</html>
<a target='_blank' href='https://www.javascriptfreecode.com' style='font-size: 8pt; text-decoration: none'>JavaScript Best Codes</a>                                                
                                            

Example:


About @kerixa

I am Krishna Eydat. I studied Software Engineering at University of Waterloo in Canada. I lead a few tech companies. I am passionate about the way we are connected. I would like to be part of something big or be the big deal!

K

Comments


Here you can leave us commments. Let us know what you think about this code tutorial!

0 / 300

TRENDING POST
1
2
3
4
5
VISITORS
Online Users: 12
Recent Members: CryptoTech, AstroAudrey, admin_js, bloxio, yqaice
advertisement 2