Feb 15, 2011

Tutorial gerak cursor ade bintang-bintang

Alalala :) 

ok, korng cube gerak-gerakkan anak panah a.k.a cursor korng kat blog fiqah tu, hehe ;) ade bintang2 yg jatuh2 kan kan kan ? ok ni fiqah nak ajarkan la ek ;) 

ok mcm biase le pergi design, add gadget, pilih html/javascript

copy le n paste le kod  ni kat html/jacascipt tadi,..

<script src="URL JS" type="text/javascript"></script>


yg URL JS tu, korng nak bintang yg jatuh tu warna ape la,tukarkan dengan kod berikut mengikut warna sprakle yang korang nak le,....


Biru - https://sites.google.com/site/unwanted86/javascript/biru.js

Hitam - https://sites.google.com/site/unwanted86/javascript/black.js

hijau - https://sites.google.com/site/unwanted86/javascript/lawngreen.js

Ungu - https://sites.google.com/site/unwanted86/javascript/purple.js

Putih - https://sites.google.com/site/unwanted86/javascript/putih.js

Pink - https://sites.google.com/site/unwanted86/javascript/salmon.js

Kuning - https://sites.google.com/site/unwanted86/javascript/yellow.js

Hijau kebiruan - https://sites.google.com/site/unwanted86/javascript/aqua.js

korng pilih la warna yg korng nak, contohnya la kan korng pilih warna biru la, kod nya

<script src="https://sites.google.com/site/unwanted86/javascript/biru.js" type="text/javascript"></script>


Bila dh siap, save le n lihat le sendiri hasil2nya :)
dh jadi an ? 


ok byebye :)