miastringa= "Ciao "+document.title var background = document.bgColor var speed = 1000; // 1 seconds browserName = navigator.appName; browserVer = parseInt(navigator.appVersion); function moveback(movert,movedn,hPos,vPos) { if (arguments[4])document.body.style.backgroundImage = "url(\"" + arguments[4] + "\")"; if (arguments[5])document.body.style.backgroundRepeat = arguments[5] if (!isNaN(hPos)) { if ((movert!=0) && (hPos>0)) hPos=-100000 hPos += movert } if (!isNaN(vPos)) {if ((movedn!=0) && (vPos>0)) vPos=-100000;vPos+= movedn} document.body.style.backgroundPosition= hPos + " " + vPos if (isNaN(hPos)) hPos = "\"" + hPos + "\"" if (isNaN(vPos)) vPos = "\"" + vPos + "\"" setTimeout("moveback("+movert+","+movedn+","+hPos+","+vPos+")",speed) } function start() {if (browserName != "Netscape" || browserVer >= 4.5) { setTimeout("moveback(1,1,0,0, background)",5000);/*Wait for 5 seconds before starting*/}} start() if (document.all) {yourLogo =miastringa; //variabile stringa logoFont = "arial"; logoColor = "000000";/*per il colore della scrittura*/ yourLogo = yourLogo.split(''); L = yourLogo.length; TrigSplit = 320 / L; Sz = new Array() logoWidth = 250; logoHeight = -30; ypos = 0; xpos = 0; step = 0.01; currStep = 0; document.write('
'); for (i = 0; i < L; i++) { e=new Date().getTime()/10 e+=i if (e%7==0)logoColor = "red" if (e%7==1)logoColor = "000000" if (e%7==2)logoColor = "ff0000" if (e%7==3)logoColor = "0000ff" if (e%7==4)logoColor = "gold" if (e%7==5)logoColor = "maroon" if (e%7==6)logoColor = "000000" document.write('
'+yourLogo[i]+'
'); } document.write('
'); function Mouse() {ypos = event.y;xpos = event.x - 5;} document.onmousemove=Mouse; function animateLogo() { outer.style.pixelTop = document.body.scrollTop; for (i = 0; i < L; i++) { ie[i].style.top = ypos + logoHeight * Math.sin(currStep + i * TrigSplit * Math.PI / 180); ie[i].style.left = xpos + logoWidth * Math.cos(currStep + i * TrigSplit * Math.PI / 180); Sz[i] = ie[i].style.pixelTop - ypos; if (Sz[i] < 5) Sz[i] = 5; ie[i].style.fontSize = Sz[i] / 1.7; } currStep -= step; setTimeout('animateLogo()', 20); } window.onload = animateLogo; }