Du bist nicht angemeldet.
|
|
PHP-Quelltext |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
<SCRIPT LANGUAGE="JavaScript">
<!--
if (document.all) {
// geben Sie hier ihren Text ein
yourLogo = "DEIN TEXT"; // Mehr als 2 Zeichen!
logoFont = "Arial"; // Schriftart
logoColor = "#000000"; // Schriftfarbe
yourLogo = yourLogo.split('');
L = yourLogo.length;
TrigSplit = 360 / L; // Radius des Ringes
Sz = new Array()
logoWidth = 100; // Weite des Ringes
logoHeight = -30; // Höhe des Ringes
ypos = 0; // Position des Ringes bei Beginn
xpos = 0; // Position des Ringes bei Beginn
step = 0.02; // Geschwindigkeit der Animation
currStep = 0; // Geschwindigkeit bei Beginn
document.write('<div id="outer" style="position:absolute;top:0px;left:0px">');
for (i = 0; i < L; i++) {
document.write('<div id="ie" 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>');
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;
}
// -->
</script>
|
|
|
PHP-Quelltext |
1 |