[MessageWatermark]


bei Mozilla und NN7 sieht das Ergebnis etwas anders aus als mit dem IE, aber das liegt möglicherweise an meiner lausigen Codierung... ;-)

[zwischen <HEAD> und </HEAD>]

<script language="JavaScript">
<!-- Message Watermark by kurt.grigg@virgin.net
// modified by nightfire (DOM compatibility)


msg="Schreiben Sie hier Ihre Nachricht hin ";
msgColor="00ff00";
msgFont="Verdana";//Some fonts work better than others, Verdana is smoothest!

//Nothing needs altering below! - ab hier nichts mehr ändern!!
msg=msg.split('');
n=msg.length;
e=360/n;
yp=0;
xp=0;
yb=40;
xb=60;
sa=0.07;
sb=0;
pa=new Array();
pb=new Array();
for (i=0; i < n; i++){
document.write('<div id="logo' +i+'" style="position:absolute;top:0;left:0;'
+'height:30;width:30;font-family:'+msgFont+';text-align:center;color:'+msgColor+'">'+msg[i]+'</div>');

function ani(){
yp=document.getElementsByTagName("body")[0].scrollTop + 50;
xp=document.getElementsByTagName("body")[0].clientWidth-100;
for (i=0; i < n; i++){
tempid = "logo"+i;
document.getElementById(tempid).style.top =yp+yb*Math.sin(sb+i*e*Math.PI/180);
document.getElementById(tempid).style.left=xp+xb*Math.cos(sb+i*e*Math.PI/180);
pb[i]=document.getElementById(tempid).style.pixelTop-yp;
pa[i]=pb[i]-pb[i]*2;
if (pa[i] < 1){
pa[i]=0;
document.getElementById(tempid).style.visibility='hidden';
}
else document.getElementById(tempid).style.visibility='visible';
document.getElementById(tempid).style.fontSize=pa[i]/2.7;
}
sb-=sa;
setTimeout('ani()',10);
}
window.onload=ani;
}
// -->
</script>

[Autor]


Kurt Grigg
modified by nightfire

[Download]

Kopieren Sie bitte den Code

Copyright © 1998- Nightfire Webworker Archiv Script No: 0291