TEXTOVY TITULKOVAC

ID
Nazov / Name:
Popis / Description:
Dlzka / Length:
Testovane pod / Tested under:

 

153
p153.html / p153.zip
Efektny textovy titulkovac
2480b
NN 4.04

UKAZKA / CLICK HERE

Zdrojovy tvar / Source code:

<HTML> <HEAD> <TITLE>JavaScript DESTINATION - P153</TITLE> </HEAD> <style type="text/javascript"> <!-- ids.clr.fontfamily="Arial"; ids.clr.whiteSpace="pre"; ids.clr.fontSize="20"; ids.clr.fontweight="bold"; ids.clr.fontStyle="italic"; //--> </style> <Script Language="JavaScript"> <!-- var z=0; var red=0; var green=0; var blue=0; var msg=0; var rgb=0; var message= new Array(); var value=0; var convert = new Array() var hexbase= new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"); var color="#FF0000"; message[0]='JavaScript DESTINATION predstavuje'; message[1]='Textovy titulkovac'; message[2]='Dufam, ze www.javascript.sk mate'; message[3]='vo svojich bookmarkoch, pretoze'; message[4]='onedlho tu najdete skvele veci !'; for (x=0; x<16; x++){ for (y=0; y<16; y++){ convert[value]= hexbase[x] + hexbase[y]; value++; } } redx=color.substring(1,3) greenx=color.substring(3,5) bluex=color.substring(5,7) hred=eval(parseInt(redx,16)) hgreen=eval(parseInt(greenx,16)) hblue=eval(parseInt(bluex,16)) function start(){ document.layers[1].top=document.layers[0].top+75 timer1=window.setInterval('up()',1) } function up(){ if ((red+15)<hred){ red+=15; redx = convert[red] } if ((green+15)<hgreen){ green+=15; greenx = convert[green] } if ((blue+15)<hblue){ blue+=15; bluex = convert[blue] } rgb = "#"+redx+greenx+bluex; if (z<19){ document.layers[1].document.writeln('<P Id="clr" Align="Center"><font color="'+rgb+'">'+message[msg]+'</font></P>') document.layers[1].document.close(); document.layers[1].top-=2 z++ } else { window.clearInterval(timer1); timer2=window.setInterval('down()',1) } } function down(){ if(red>10){ red-=10; redx = convert[red] } if(green>10){ green-=10; greenx = convert[green] } if(blue>10){ blue-=10; bluex = convert[blue] } rgb = "#"+redx+greenx+bluex; if (z<38){ document.layers[1].document.writeln('<P Id="clr" Align="Center"><font color="'+rgb+'">'+message[msg]+'</font></P>') document.layers[1].document.close(); document.layers[1].top-=2 z++ } else { window.clearInterval(timer2); if(msg<message.length-1){ msg++ z=0 window.setTimeout('start()',100) } else { msg=0 z=0 window.setTimeout('start()',2000) } } } // --> </Script> <BODY BGCOLOR="#000000" onLoad="start()"> <CENTER> <Layer width=790 height=100 bgcolor="#000000" left=4 top=130> </Layer> <Layer> </Layer> </BODY> </HTML>
[ Navrat / BACK ]