JavaScript – Shake Browser

Nah ini dia script yang bisa membuat browser kita bergoyang tapi bukan goyang seperti…hehe…
Ok langsung saja lihat script dibawah ini:
<script language=”JavaScript”>
<!–
function shake(n) {
if (parent.moveTo) {
for (i = 200; i > 0; i–) {
for (j = n; j > 0; j–) {
self.moveTo(-i,0);
self.moveTo(0,-i);
self.moveTo(-i,0);
self.moveTo(0,i);
self.moveTo(i,0);
self.moveTo(0,-i);
self.moveTo(-i,0);
self.moveTo(0,i);
self.moveTo(i,0);
self.moveTo(0,-i);
self.moveTo(-i,0);
self.moveTo(0,-i);
self.moveTo(i,0);
self.moveTo(0,i);
self.moveTo(i,0);
self.moveTo(0,i);
}
}
}
}
–>
<!–
shake(2);
–>
</script>

(3)

0 comments on “JavaScript – Shake BrowserAdd yours →

Leave a Reply

Your email address will not be published. Required fields are marked *