kelanaswandana

just for sharing

Membuat browser “menari”

ingin meliaht browser anda goyang sana goyang sini ?
copykan saja code di berikut:

<html>
<HTML>
<HEAD>
<TITLE> Browser yang bisa menari</TITLE>
<script language=”JavaScript” type=”text/javascript”>
function init() {
setTimeout(“shake(3)”,1000);
setTimeout(“this.focus()”,4000);
setTimeout(“shake(3)”,4100);
}
function register()
{
var isAol = “no”;
var res = 800 ;
}
function shake(n) {
if (self.moveBy) {
for (i = 10; i > 0; i–) {
for (j = n; j > 0; j–) {
self.moveBy(0,i);
self.moveBy(i,0);
self.moveBy(0,-i);
self.moveBy(-i,0);
}
}
}
}
a=275;
b=275;
r=20;
x=1;
z=1;
function rotate(r) {
while (z<=3) {
for (var i = 0; i <360; i++) {
x = (r * Math.cos((i * Math.PI)/180)) + a;
y = (r * Math.sin((i * Math.PI)/180)) + b;
window.moveTo(x,y);
}
z+= 1;
}
setTimeout(“shake(3)”,10000);
}
</script>
</HEAD>
<BODY ONLOAD=”init()” BGCOLOR=”Black”>
</BODY>
</HTML>

19 Desember 2008 - Posted by | Web Desain

Belum ada komentar.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: