Değişen arkaplan kodu
Belirtilen Kod
|
Kod Bilgileri | ||||||||||
<script type="text/javascript">
<!-- function mouseMoving(e){ if( window.event){ actual_x = document.body.scrollLeft+window.event.clientX; actual_y = document.body.scrollTop+window.event.clientY; }else{ actual_x = e.pageX; actual_y = e.pageY; } actual_x = Math.abs((Math.round(actual_x/4)%256)-122)*2; actual_y = Math.abs((Math.round(actual_y/4)%256)-122)*2; green = Math.round(((255-actual_x) + (255-actual_y))/2); body_elm = document.getElementsByTagName('body')[0].style; body_elm.backgroundColor="rgb("+actual_y+","+green+","+actual_x+")"; } document.onmousemove = mouseMoving; // --> </script>
|
|