Tekst wokoło kursora w JS sz[i], trigsplit, mathpi, i++, wokoło, tekst, kursora,
if, documentall,
yourlogo, =, , i, +, sz[i], 0, trigsplit, mathpi, l, i++, lt, js, wokoło, tekst, kursora, w,
if, documentall,
yourlogo, eventx, new,
logofont,
trigsplit, 360, yourlogosplit
l, 0
step, 005
currstep, 30
ypos, 0
xpos,
ypos, mouse, l
sz, 100
logoheight, eventy
xpos, array
logowidth, yourlogolength, documentbodyscrolltop, logoheight, logowidth, 5,
outerstylepixeltop, animatelogo,
ie[i]styletop, 5
documentonmousemove=mouse
function,
for, 5
ie[i]stylefontsize, ypos, mathcoscurrstep, 180
sz[i], 17
currstep, xpos, mathsincurrstep, step
settimeoutanimatelogo, 180
ie[i]styleleft, ypos
if, ie[i]stylepixeltop, 20
animatelogo
ltscript, 0
documentwrite
for,
documentwrite+yourlogo[i]+
documentwrite
function, wwwmaksitechwebegecom, quotwwwmaksitechwebegecomquotnbsp, verdana
logocolor, quot0000ffquot
yourlogo, language=quotjavascriptquotgt, quotverdanaquot
logocolor, 0
documentwriteltdiv, style=quotpositionrelativequotgt
for, style=quotpositionabsolutetop0pxleft0pxquotgtltdiv, id=quotouterquot, id=quotiequot, style=quotpositionabsolutetop0pxleft0px
+width10pxheight10pxfontfamily+logofont+fontsize12px
+color+logocolor+textaligncenterquotgt+yourlogo[i]+ltdivgt
documentwriteltdivgtltdivgt
function,
documentwriteltdiv, 20
animatelogo
ltscriptgt, 0000ff
yourlogo,
Czwartek 03 Kwiecień 2025r.
Godz 00:00:00
Postów: 251
Tekst wokoło kursora w JS
<SCRIPT LANGUAGE="JavaScript">
if (document.all) {
yourLogo = "www.maksitech.webege.com";
logoFont = "Verdana";
logoColor = "0000FF";
yourLogo = yourLogo.split('');
L = yourLogo.length;
TrigSplit = 360 / L;
Sz = new Array()
logoWidth = 100;
logoHeight = -30;
ypos = 0;
xpos = 0;
step = 0.05;
currStep = 0;
document.write('<div id="outer" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
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></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);
}
animateLogo();
}
</SCRIPT>
Darmowy hosting zapewnia PRV.PL