Saturday, September 20, 2008

Klik Kanan Gempa

-------
Script ini hanya jalan di Internet Explorer

Jika anda klik kanan maka browser akan bergetar !!
-------



contoh buka: http://www.ilmuwebsite.com/javascript/klik-gempa.htm

<html>
<head>
</head>
<body bgcolor="#000000">

<SCRIPT language=JavaScript>
<!--inizio-----mess per copiare

document.onmousedown=click
function click() {
times2=0
if ((event.button==2) || (event.button==3))
{
alert("Jangan klik kanan !!");
shake(20)
}
}
function shake(n) {
if (parent.moveBy) {
for (i = 20; i > 0; i--) {
for (j = n; j > 0; j--) {
parent.moveBy(0,i);
parent.moveBy(i,0);
parent.moveBy(0,-i);
parent.moveBy(-i,0);
         }
      }
   }
}
//fine copia-->
</SCRIPT>

</body>

</html>

No comments:

Post a Comment