Java  

Posted by Apik Budiono

-------
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>

Sumber dari situs Ilmu Website dalam kategori javascript dengan judul Klik kanan Gempa

This entry was posted on Jumat, 23 Mei 2008 at 08.00 . You can follow any responses to this entry through the comments feed .

0 komentar

Posting Komentar