Administrator
Administrator
Dołączył: 15 Lis 2008
Posty: 89
Przeczytał: 0 tematów
Ostrzeżeń: 0/5 Skąd: Polska
|
Wysłany: Pon 17:03, 17 Lis 2008 Temat postu: Latający text 3d |
|
|
Kod: | script type='text/javascript'>
<!--
if (document.getElementById) {
yourLogo = "TU WPISZ TEKST
/////powered by wszystko-humor.pl.tl/";
logoFont = "Arial";
logoColor = "#FFFFFF";
yourLogo = yourLogo.split('');
L = yourLogo.length;
TrigSplit = 360 / L;
Sz = new Array()
logoWidth = 100;
logoHeight = -30;
ypos = 0;
xpos = 0;
step = 0.03;
currStep = 0;
document.write('<div id="outermausi" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i = 0; i < L; i++) {
document.write('<div id="ie'+i+'" style="position:absolute;top:0px;left:0px;width:10px;height:10px;font-family:'+logoFont+';font-size:12px;color:'+logoColor+';text-align:center">'+yourLogo[i]+'</div>');
}
document.write('</div></div>');
function Mouse(e) {
ypos = (e)?e.pageY:window.event.y+document.documentElement.scrollTop;
xpos = (e)?e.pageX:window.event.x-5;
}
function animateLogo() {
document.getElementById('outermausi').style.top = document.body.scrollTop;
for (i = 0; i < L; i++) {
eltop=document.getElementById('ie'+i).style.top;
document.getElementById('ie'+i).style.top = ypos + logoHeight * Math.sin(currStep + i * TrigSplit * Math.PI / 180)+"px";
document.getElementById('ie'+i).style.left = xpos + logoWidth * Math.cos(currStep + i * TrigSplit * Math.PI / 180)+"px";
Sz[i] = eltop.substr(0, eltop.length-2) - ypos;
if (Sz[i] < 5) Sz[i] = 5;
document.getElementById('ie'+i).style.fontSize = Sz[i] / 1.7 + "px";
}
currStep -= step;
setTimeout('animateLogo()', 20);
}
window.onload = animateLogo;
}
//-->
</script> |
Post został pochwalony 0 razy
|
|