The Code
<script language="JavaScript"><!-- Begin
function geol(n) {
if (parent.moveBy) {
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {
parent.moveBy(i,0);
parent.moveBy(0,-i);
parent.moveBy(-i,0);
parent.moveBy(0,i);
parent.moveBy(i,0);
parent.moveBy(0,-i);
parent.moveBy(-i,0);
parent.moveBy(0,i);
parent.moveBy(i,0);
parent.moveBy(0,-i);
parent.moveBy(-i,0);
parent.moveBy(0,i);
parent.moveBy(i,0);
parent.moveBy(0,-i);
parent.moveBy(-i,0);
parent.moveBy(0,i);}}}}
// End --></script>
<a onClick="geol(1);" style="cursor:pointer;">Click Gw buat DEMO</a>
Result
Click Gw buat DEMO
Note
- onClick="geol(1);" angka 1 disitu menentukan jumlah "geol"an.
- Silahkan acak-acak i = 10; sesuai dengan selera "geol"an anda.
- Cuman ngingetin
takutnya lupa, biar script load otomatis tinggal masukin aja geol(1); nya di ujung script (sebelum // End -->).
No comments:
Post a Comment