Hier finden Sie alle Zeilen des im Artikel angegebenen Codes und sparen sich so das lästige Abtippen. Um den Code zu verwenden, folgen Sie bitte der Beschreibung im Heft.
<HTML> <HEAD> <TITLE>Title Animations</TITLE> </HEAD> <Script Language="Javascript"> <!-- Hiding /* Script by Lefteris Haritou Copyright ©1998 http://www.geocities.com/~lef This Script is free as long as you keep the above credit ! */ bname=navigator.appName; bversion=parseInt(navigator.appVersion) if ((bname=="Netscape" && bversion>=4) || (bname=="Microsoft Internet Explorer" && bversion>=4)){ if (bname=="Netscape"){ brows=true del=30 } else{ brows=false del=80 } var msg=0; var z=0; var timer1; var message= new Array(); var color= new Array(); var values= new Array('-6','-5','-4','-3','-2','-1','+1','+2','+3','+4','+5','+6') // Put here your own messages. Add as many as you wan't (Do not edit anything else in the Script except the lines below) message[0]='Title Animations' color[0]='#FF0000' message[1]='A new JavaScript' color[1]='#0000FF' message[2]='Fully customizable and easy to use' color[2]='#FFFF00' message[3]='© 1998 Lefteris Haritou' color[3]='#FFFFFF' message[4]='Netscape 4 and Internet Explorer 4 supported' color[4]='#00FF00' // Put here your own messages. Add as many as you wan't (Do not edit anything else in the Script except the lines above) function start(){ if ((bname=="Netscape" && bversion>=4) || (bname=="Microsoft Internet Explorer" && bversion>=4)){ if(z<values.length){ if (brows){ document.layers['text'].document.writeln('<P Class="main" Align="Center"><font color="'+color[msg]+'" size="'+values[z]+'" face="Arial"><NOBR>'+message[msg]+'</NOBR></font></P>') document.layers['text'].document.close(); } else{ text.innerHTML='<Pre><P Class="main" Align="Center"><font color="'+color[msg]+'" size="'+values[z]+'" face="Arial"><NOBR>'+message[msg]+'</NOBR></font></P></Pre>' } z++; timer1=window.setTimeout('start()',del) } else chg(); } } function stop(){ if ((bname=="Netscape" && bversion>=4) || (bname=="Microsoft Internet Explorer" && bversion>=4)) window.clearTimeout(timer1); window.clearTimeout(timer2); } function chg(){ if (brows){ document.layers['text'].document.writeln('') document.layers['text'].document.close(); } else text.innerHTML=''; if(msg<message.length-1){ msg++; } else msg=0; z=0; timer2=window.setTimeout('start()',1000) } } // done hiding --> </Script> <BODY BGCOLOR="#000000" LINK="#FF0000" VLINK="#FF0000" ALINK="#FFFF00" TEXT="#000000" onLoad="start()" onUnload="stop()"> <Div id="text" style="position: absolute; left: 4; top: 80"> </Div> <Layer name="text" left=4 top=80> </Layer> </HTML>