animated message




JavaScript Source Code 3000: Scrolls: Animated Message







































Animated Message







Draw attention to the status bar message at the bottom of the screen by adding some animation to it! Arrows will focus on the message by continually pointing at the text. Clever!









JavaScript Source Code 3000: Scrolls: Animated Message
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!





    





<!-- TWO STEPS TO INSTALL ANIMATED MESSAGE:

1. Copy the coding into the HEAD of your HTML document
2. Add the onLoad event handler into the BODY tag -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Sean McCarthy -->

<! >
<! >

<!-- Begin
var hellotext = "Definitely a great attention-getter!"
var thetext = "";
var started = false;
var step = 0;
var times = 1;

function welcometext() {
times--;
if (!times) {
if (!started) {
started = true;
window.status = hellotext;
setTimeout("anim()", 1);
}
thetext = hellotext;
}
}

function anim() {
step++;
if (step==7) step = 1;
if (step==1) window.status = '>===' + thetext + '===<';
if (step==2) window.status = '=>==' + thetext + '==<=';
if (step==3) window.status = '>=>=' + thetext + '=<=<';
if (step==4) window.status = '=>=>' + thetext + '<=<=';
if (step==5) window.status = '==>=' + thetext + '=<==';
if (step==6) window.status = '===>' + thetext + '<==='
setTimeout("anim()", 200);
}
// End -->
</script>

<!-- STEP TWO: Insert the onLoad event handler into your BODY tag -->

<BODY OnLoad="welcometext()">



<!-- Script Size: 1.42 KB -->














Wyszukiwarka

Podobne podstrony:
Windows Messages
Animation js
message5 (2)
function mssql get last message
messageboxesframe
2006 05?rtoon Creating Animated Characters with Blender
message3 (2)
message
animat
Zabawy animatora
message
message (10)
find location message

więcej podobnych podstron