Javascript - Html kodları

Aşağıdaki kodları <body> kodundan sonra istediğiniz bir yere yapıştırın.

{codecitation class="brush: xml; gutter: false;" width="500px"}
<script language="JavaScript">
<!-- Message Watermark by This email address is being protected from spambots. You need JavaScript enabled to view it.
if (document.all){

msg="U z m a n W e b";
msgColor="#000066";
msgFont="Verdana";

msg=msg.split('');
n=msg.length;
e=70/n;
yp=0;
xp=0;
yb=50;
xb=50;
sa=0.05;
sb=0;
pa=new Array();
pb=new Array();
for (i=0; i < n; i++){
document.write('<div id="logo" 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.body.scrollTop+50;
xp=document.body.scrollLeft+window.document.body.clientWidth-100;
for (i=0; i < n; i++){
logo[i].style.top =yp+yb*Math.sin(sb+i*e*Math.PI/90);
logo[i].style.left=xp+xb*Math.cos(sb+i*e*Math.PI/90);
pb[i]=logo[i].style.pixelTop-yp;
pa[i]=pb[i]-pb[i]*2;
if (pa[i] < 1){
pa[i]=0;
logo[i].style.visibility='hidden';
}
else logo[i].style.visibility='visible';
logo[i].style.fontSize=pa[i]/2.7;
}
sb-=sa;
setTimeout('ani()',20);
}
window.onload=ani;
}
// -->
</script>


{/codecitation}



Örnek demo için tıklayın >>