Duniaweb Blog

Your Interner Life Partner

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>

September 22, 2008 - Posted by | JavaScript

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: