<!-- DEBUT DU SCRIPT -->
<style type="text/css">
.spanstyle {
position:absolute;
visibility:visible;
top:-50px;
font-size:10pt;
font-family:arial;
font-weight:bold;
color:#000000;
}</style>
<script language=JavaScript>
var x,y
var step=20
var flag=0
var message='Üdv az oldalon!'
message=message.split("")
var xpos=new Array()
for (i=0;i<=message.length-1;i++) {
xpos[i]=-50
}
var ypos=new Array()
for (i=0;i<=message.length-1;i++) {
ypos[i]=-50
}
function handlerMM(e){
x = (navigator.appName.substring(0,3) == "Net") ? e.pageX : event.x+document.body.scrollLeft;
y = (navigator.appName.substring(0,3) == "Net") ? e.pageY : event.y+document.body.scrollTop;
flag=1
}
function makesnake() {
if (flag==1 && document.getElementById) {
for (i=message.length-1; i>=1; i--) {
xpos[i]=xpos[i-1]+step
ypos[i]=ypos[i-1]
}
xpos[0]=x+step
ypos[0]=y
for (i=0; i<message.length-1; i++) {
var thisspan = document.getElementById('span'+(i)).style;
thisspan.left=xpos[i]
thisspan.top=ypos[i]
}
}
var timer=setTimeout("makesnake()",30)
}
</script><!-- FIN DU SCRIPT --><!-- DEBUT DU SCRIPT --><!--
SCRIPT EDITE SUR L'EDITEUR JAVASCRIPT
http://www.editeurjavascript.com
--><script language=JavaScript>
for (i=0;i<=message.length-1;i++) {
document.write("<DIV id=span"+i+" class=spanstyle>")
document.write(message[i])
document.write("</DIV>")
}
if (document.getElementById)
{
if(navigator.appName.substring(0,3) == "Net")
document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = handlerMM;
}
window.onload = makesnake;
</script><!-- FIN DU SCRIPT -->
|