<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>Animatie JavaScript in StatusBar</title>
<script
language="JavaScript">
<!-- Funny text script by Bart Jellema
var hellotext="What do you think of this?"
var thetext=""
var started=false
var step=0
var times=1
function
welcometext()
{
times--
if (times==0)
{
if (started==false)
{
started = true;
window.status = hellotext;
setTimeout("anim()",1);
}
thetext = hellotext;
}
}
function
showstatustext(txt)
{
thetext = txt;
setTimeout("welcometext()",4000)
times++
}
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);
}
// Funny text script by Bart Jellema -->
</script>
</head>
<body
onLoad="welcometext()">
<H3> Uite-te in bara de jos a browser-ului (statusbar) </H3>
</body>
</html>
Inapoi la indexul exemplelor JavaScript