View Full Version : Animation on the Title Bar?
tonyko
09-11-2001, 06:18 AM
Hello all,
I ran across a website today, and they have this cool effect which the Title Bar have moving texts, No, it's not the Status Bar..
I've searched for an hour on the internet trying to find that scrip, but I couldn't find it. Guess it was not written for the public?
If you're interested to see what I'm talking about, the address is http://www.promotionstat.com/
Please help, I'd love to have that effect in my website..
Thank you
Tony
PCheese
09-11-2001, 06:34 AM
Here you go...
Change textDisplay to get different bits of text.
Change textCount to let it know how many you've got.
Change the setTimeOut value to tell it how fast to go.
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
var textDisplay = new Array ("Text Line 1", "Text Line 2");
var textCount=2;
var x=1;
var y=0;
var z=1;
function animate()
{
window.document.title=textDisplay[y].substr(0, x)+"";
if (z==0) x--;
if (z==1) x++;
if (x==-1) {z=1;x=0;y++;y=y%textCount;}
if (x==textDisplay[y].length+10) {z=0;x=textDisplay[y].length;}
parent.window.document.title=textDisplay[y].substr(0, x)+"";
setTimeout("animate()",75);
}
//-->
</SCRIPT>
</HEAD>
<BODY onLoad="animate()">
Welcome to my web page...
</BODY>
whkoh
09-11-2001, 07:47 AM
Lots:
http://www.codebelly.com/javascript/titlebarticker.html
http://www.dynamicdrive.com/dynamicindex11/animatedtitle.htm
http://www.dhtmlshock.com/animations/AnimatedTitle/default.asp
http://html_help4u.tripod.com/an_title.html
http://www.geocities.com/r_cuenco/
http://www20.brinkster.com/mastaufiq/free%20html-5.htm
http://www.e-ants.idv.tw/script-3.htm
http://webdeveloper.earthweb.com/pagedev/webjs/item/0,,12744_48721_viewit,00.html
tonyko
09-11-2001, 08:23 AM
Hey... PCheese and Whkoh, I really appreciate that, thanks!
I guess that's because it's called "ticker", I kept searching for 'animation".. Please forgive me, for English is not my mother language.
Anyway, many thanks, guys!
Tony
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.