<SCRIPT> var text=new Array() var textsplashcolors=new Array()
// Je berichten...plaats hier zoveel berichten dat je maar wilt! text[0]="Hiszek a csodákban," text[1]="nagyobb és kisebb csodákban." text[2]="melyek a megbocsátást hozzák." text[3]="És hiszek az igaz szerelemben," text[4]="mely oly ritkán adatik meg," text[5]="és oly nehéz elnyerni. L"
// De kleuren van de letters. textsplashcolors[0]="#0000ff" textsplashcolors[1]="#FF00ff" textsplashcolors[2]="#0000ff" textsplashcolors[3]="#FF00ff" textsplashcolors[4]="#0000ff" textsplashcolors[5]="#FF00ff"
// Het lettertype. var textfont="Verdana"
// Het formaat van de letters (CSS-standard) var textfontsize=18
// Het formaat van de letters voor NS4x (HTML-standard) var textfontsizeHTML=3
// De pauze tussen de berichten in seconden. var textpause=2
// Hieronder niets veranderen als je niet weet wat je doet!! Groetjes Michel. var textweight="bold" var textweightA="<b>" var textweightB="</b>" var textitalic="normal" var textitalicA="" var textitalicB="" var textalignabsolute="topcenter" var letterwidth=new Array() var messagewidth=0 var messageheight=0 var i_colors=0 var letterspace=Math.floor(textfontsize/1.3) var timer var i_text=0 var textsplitted var i_textpath=0 var endpause=1 var endpausemilli=endpause*10 var maxtextlength=0 var i_endposition=0 var windowwidth=0 var windowheight=0 var windowwidthfactor=1 var windowheightfactor=1 var i_span=0 var startposmax_x=0 var startposmax_y=0 textpause*=1000 var x_step=new Array() var y_step=new Array() var x_finalpos=new Array() var y_finalpos=0 var max_loop=20 var i_loop=0
var ns4=document.layers?1:0 var ns6=document.getElementById&&!document.all?1:0 var ie=document.all?1:0
for (i=0;i<=text.length-1;i++) { if (text[i].length>=maxtextlength) {maxtextlength=text[i].length} } for (i=0;i<=text.length-1;i++) { text[i]=text[i]+" " }
var xpos=new Array() for (i=0;i<=maxtextlength;i++) { xpos[i]=5000 }
var ypos=new Array() for (i=0;i<=maxtextlength;i++) { ypos[i]=5000 }
function randomizer(range) { return Math.floor(range*Math.random()) }
function getpagesize() { if (ie) { windowheight=parseInt(document.body.clientHeight) windowwidth=parseInt(document.body.clientWidth) } if (ns4 || ns6) { windowheight=parseInt(window.innerHeight) windowwidth=parseInt(window.innerWidth) } startposmax_x=windowwidth-2*parseInt(textfontsize) startposmax_y=windowheight-2*parseInt(textfontsize)
changecontent() }
function changecontent() { messagewidth=0 var textsa=text[i_text] textsplitted=textsa.split("") if (ie) { for (i=0;i<=textsplitted.length-1;i++) { var thisspan=eval("document.all.span"+i) thisspan.innerHTML="<span style='font-family:"+textfont+";font-size:"+textfontsize+";font-style:"+textitalic+";font-weight:"+textweight+";color:"+textsplashcolors[i_colors]+";text-align:center'>"+textsplitted[i]+"</span>" i_colors++ if (i_colors>textsplashcolors.length-1) {i_colors=0} letterwidth[i]=Math.round(thisspan.offsetWidth*1.2) if (letterwidth[i]==0) {letterwidth[i]=parseInt(textfontsize)} messagewidth+=letterwidth[i] messageheight=Math.round(document.all.span0.offsetHeight) } } if (ns6) { for (i=0;i<=textsplitted.length-1;i++) { var thisspan=eval(document.getElementById('span'+i)) thisspan.innerHTML="<span style='font-family:"+textfont+";font-size:"+textfontsize+";font-style:"+textitalic+";font-weight:"+textweight+";color:"+textsplashcolors[i_colors]+"'>"+textsplitted[i]+"</span>" i_colors++ if (i_colors>textsplashcolors.length-1) {i_colors=0} letterwidth[i]=Math.round(parseInt(thisspan.offsetWidth)*1.2) if (letterwidth[i]==0) {letterwidth[i]=textfontsize} messagewidth+=letterwidth[i] messageheight=Math.round(document.getElementById('span0').offsetHeight) } } if (ns4) { for (i=0; i<textsplitted.length-1; i++) { var thisspan=eval("document.span"+i+".document") thisspan.write("<p><font size="+textfontsizeHTML+" color="+textsplashcolors[i_colors]+" face="+textfont+">"+textitalicA+textweightA+textsplitted[i]+textweightB+textitalicB+"</font></p>") thisspan.close() letterwidth[i]=Math.round(thisspan.width*1.2) if (letterwidth[i]==0) {letterwidth[i]=textfontsize} messagewidth+=letterwidth[i] messageheight=Math.round(document.span0.document.height) thisspan.clear() i_colors++ if (i_colors>textsplashcolors.length-1) {i_colors=0} } for (i=0; i<textsplitted.length-1; i++) { var thisspan=eval("document.span"+i) thisspan.visibility="show" } } i_text++ if (i_text>=text.length) {i_text=0} getfinalpos() }
function getfinalpos() { if (ie || ns6) {var padding_x=100}; if (ns4) {var padding_x=40}; if (ie || ns6) {var padding_y=80}; if (ns4) {var padding_y=40}; if (textalignabsolute=="middlecenter") { x_finalpos[0]=(windowwidth-messagewidth)/2 y_finalpos=(windowheight-messageheight)/2 } else if (textalignabsolute=="topleft") { x_finalpos[0]=5 y_finalpos=0 } else if (textalignabsolute=="topcenter") { x_finalpos[0]=(windowwidth-messagewidth)/2 y_finalpos=0 } else if (textalignabsolute=="topright") { x_finalpos[0]=windowwidth-messagewidth y_finalpos=0 } else if (textalignabsolute=="bottomleft") { x_finalpos[0]=5 y_finalpos=windowheight-messageheight } else if (textalignabsolute=="bottomcenter") { x_finalpos[0]=(windowwidth-messagewidth)/2 y_finalpos=windowheight-messageheight } else if (textalignabsolute=="bottomright") { x_finalpos[0]=windowwidth-messagewidth y_finalpos=windowheight-messageheight } for (i=1;i<textsplitted.length-1;i++) { x_finalpos[i]=x_finalpos[i-1]+letterwidth[i-1] } gotostartpos() }
function gotostartpos() { if (ie) { for (i=0;i<textsplitted.length-1;i++) { var thisspan=eval("document.all.span"+i+".style") thisspan.posLeft=randomizer(startposmax_x) thisspan.posTop=randomizer(startposmax_y) } } if (ns4) { for (i=0;i<textsplitted.length-1;i++) { var thisspan=eval("document.span"+i) thisspan.left=randomizer(startposmax_x) thisspan.top=randomizer(startposmax_y) } } if (ns6) { for (i=0;i<textsplitted.length-1;i++) { var thisspan=eval("document.getElementById('span'+i).style") thisspan.left=randomizer(startposmax_x) thisspan.top=randomizer(startposmax_y) } } gotostandstillpos() }
function gotostandstillpos() { if (ie) { if (i_loop<=max_loop-1) { for (i=0;i<textsplitted.length-1;i++) { var thisspan=eval("document.all.span"+i+".style") x_step[i]=(x_finalpos[i]-thisspan.posLeft)/(max_loop-i_loop) y_step[i]=(y_finalpos-thisspan.posTop)/(max_loop-i_loop) thisspan.posLeft+=x_step[i] thisspan.posTop+=y_step[i] } i_loop++ var timer=setTimeout("gotostandstillpos()",20) } else { i_loop=0 clearTimeout(timer) timer=setTimeout("gotoendpos()",textpause) } } if (ns4) { if (i_loop<=max_loop-1) { for (i=0;i<textsplitted.length-1;i++) { var thisspan=eval("document.span"+i) x_step[i]=(x_finalpos[i]-thisspan.left)/(max_loop-i_loop) y_step[i]=(y_finalpos-thisspan.top)/(max_loop-i_loop) thisspan.left+=x_step[i] thisspan.top+=y_step[i] } i_loop++ var timer=setTimeout("gotostandstillpos()",20) } else { i_loop=0 clearTimeout(timer) timer=setTimeout("gotoendpos()",textpause) } } if (ns6) { if (i_loop<=max_loop-1) { for (i=0;i<textsplitted.length-1;i++) { var thisspan=eval("document.getElementById('span'+i).style") x_step[i]=(x_finalpos[i]-parseInt(thisspan.left))/(max_loop-i_loop) y_step[i]=(y_finalpos-parseInt(thisspan.top))/(max_loop-i_loop) thisspan.left=parseInt(thisspan.left)+x_step[i] thisspan.top=parseInt(thisspan.top)+y_step[i] } i_loop++ var timer=setTimeout("gotostandstillpos()",20) } else { i_loop=0 clearTimeout(timer) timer=setTimeout("gotoendpos()",textpause) } } }
function gotoendpos() { if (ie) { if (i_loop<=textsplitted.length-1) { var thisspan=eval("document.all.span"+i_loop+".style") thisspan.posLeft=-1000 i_loop++ var timer=setTimeout("gotoendpos()",10) } else { clearTimeout(timer) i_loop=0 var timer=setTimeout("changecontent()",400) } } if (ns4) { if (i_loop<=textsplitted.length-1) { var thisspan=eval("document.span"+i_loop) thisspan.left=-1000 i_loop++ var timer=setTimeout("gotoendpos()",10) } else { clearTimeout(timer) i_loop=0 changecontent() } } if (ns6) { if (i_loop<=textsplitted.length-1) { var thisspan=eval("document.getElementById('span'+i_loop).style") thisspan.left=-1000 i_loop++ var timer=setTimeout("gotoendpos()",10) } else { clearTimeout(timer) i_loop=0 changecontent() } } }
if (ie) { for (i=0;i<=maxtextlength;i++) { document.write("<span id='span"+i+"' style='position:absolute'>") document.write("</span>") } window.onload=getpagesize } if (ns6) { for (i=0;i<=maxtextlength;i++) { document.write("<span id='span"+i+"' style='position:absolute'>") document.write(textsplitted) document.write("</span>") } window.onload=getpagesize } if (ns4) { for (i=0;i<=maxtextlength;i++) { document.write("<layer name='span"+i+"' visibility=hide>") document.write(textsplitted) document.write("</layer>") } window.onload=getpagesize } </SCRIPT> <SPAN id=span0 style="LEFT: -48px; POSITION: absolute; TOP: 0px"><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #0000ff; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-ALIGN: center">H</SPAN></SPAN><SPAN id=span1 style="LEFT: -29px; POSITION: absolute; TOP: 0px"><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #ff00ff; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-ALIGN: center">i</SPAN></SPAN><SPAN id=span2 style="LEFT: -21px; POSITION: absolute; TOP: 0px"><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #0000ff; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-ALIGN: center">s</SPAN></SPAN><SPAN id=span3 style="LEFT: -7px; POSITION: absolute; TOP: 0px"><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #ff00ff; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-ALIGN: center">z</SPAN></SPAN><SPAN id=span4 style="LEFT: 6px; POSITION: absolute; TOP: 0px"><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #0000ff; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-ALIGN: center">e</SPAN></SPAN><SPAN id=span5 style="LEFT: 22px; POSITION: absolute; TOP: 0px"><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #ff00ff; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-ALIGN: center">k</SPAN></SPAN><SPAN id=span6 style="LEFT: 38px; POSITION: absolute; TOP: 0px"><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #0000ff; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-ALIGN: center"></SPAN></SPAN><SPAN id=span7 style="LEFT: 39px; POSITION: absolute; TOP: 0px"><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #ff00ff; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-ALIGN: center">a</SPAN></SPAN><SPAN id=span8 style="LEFT: 55px; POSITION: absolute; TOP: 0px"><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #0000ff; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-ALIGN: center"></SPAN></SPAN><SPAN id=span9 style="LEFT: 56px; POSITION: absolute; TOP: 0px"><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #ff00ff; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-ALIGN: center">c</SPAN></SPAN><SPAN id=span10 style="LEFT: 70px; POSITION: absolute; TOP: 0px"><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #0000ff; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-ALIGN: center">s</SPAN></SPAN><SPAN id=span11 style="LEFT: 84px; POSITION: absolute; TOP: 0px"><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #ff00ff; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-ALIGN: center">o</SPAN></SPAN><SPAN id=span12 style="LEFT: 100px; POSITION: absolute; TOP: 0px"><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #0000ff; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-ALIGN: center">d</SPAN></SPAN><SPAN id=span13 style="LEFT: 117px; POSITION: absolute; TOP: 0px"><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #ff00ff; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-ALIGN: center">á</SPAN></SPAN><SPAN id=span14 style="LEFT: 133px; POSITION: absolute; TOP: 0px"><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #0000ff; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-ALIGN: center">k</SPAN></SPAN><SPAN id=span15 style="LEFT: 149px; POSITION: absolute; TOP: 0px"><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #ff00ff; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-ALIGN: center">b</SPAN></SPAN><SPAN id=span16 style="LEFT: 166px; POSITION: absolute; TOP: 0px"><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #0000ff; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-ALIGN: center">a</SPAN></SPAN><SPAN id=span17 style="LEFT: 182px; POSITION: absolute; TOP: 0px"><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #ff00ff; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-ALIGN: center">n</SPAN></SPAN><SPAN id=span18 style="LEFT: 199px; POSITION: absolute; TOP: 0px"><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #0000ff; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-ALIGN: center">,</SPAN></SPAN><SPAN id=span19 style="POSITION: absolute"><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #ff00ff; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-ALIGN: center"></SPAN></SPAN><SPAN id=span20 style="POSITION: absolute"></SPAN><SPAN id=span21 style="POSITION: absolute"></SPAN><SPAN id=span22 style="POSITION: absolute"></SPAN><SPAN id=span23 style="POSITION: absolute"></SPAN><SPAN id=span24 style="POSITION: absolute"></SPAN><SPAN id=span25 style="POSITION: absolute"></SPAN><SPAN id=span26 style="POSITION: absolute"></SPAN><SPAN id=span27 style="POSITION: absolute"></SPAN><SPAN id=span28 style="POSITION: absolute"></SPAN><SPAN id=span29 style="POSITION: absolute"></SPAN><SPAN id=span30 style="POSITION: absolute"></SPAN>
|