Monday, August 01, 2011

Renew Tutorial : Pic change bila cursor sentuh

suka gila motor nie ! MAK beli satu kat adk :p
credit to : TUMBLR


Hai and hai, hari ni buad dua entry ! kali nie nak renew tutorial pic change bila cursor sentuh ! mlm nanty maybe mas akan renew tutorial laen pulak ek ? :D

Design > page elements > add a gadget > html/javascript


Utk letak link #bila klik gmbar kuar link utk ke tempat laen

Copy and paste code nie dalam html java.


<a href="LINKIE"><img src="URL PIC 1" onmouseover="this.src=’URL PIC 2'" onmouseout="this.src=’URL PIC 1’" /></a>

Note:
URL PIC 1 : pic yg korang mula mula nak tunjuk
LINKIE : link utk buka bila click pic tuh
URL PIC 2 : pic selepas cursor di sentuh


Takde link, gambar biasa sahaja

<img src="URL PIC 1" onmouseover="this.src='URL PIC 2'" onmouseout="this.src='URL PIC 1'" />

Note:
URL PIC 1 : pic yg korang mula mula nak tunjuk
URL PIC 2 : pic selepas cursor di sentuh

No comments: