
|
(1) คลิ๊กไปที่ - Select All - แล้ว Copy
Code ไปใช้งาน
โดยวางไว้ระหว่าง Tag <Head>
</Head> ดังตัวอย่าง
(2) นำ class="picshake" onMouseover="init(this);rattleimage()"
onMouseout="stoprattle(this)" ไปวางไว้ใน
Link Tag <img> ที่ ๆ คุณต้องการ
ดังตัวอย่าง |
ภาพปกติ
ภาพ หลังใส่ Effect
<img src="bullet.gif" class="picshake"
onMouseOver="init(this);rattleimage()" onMouseOut="stoprattle(this)">
|
|
+:: Tips ::+
|
คุณสามารถปรับแรงสั่นของภาพได้ดังนี้
ในขั้นตอนที่ (1)
//ความสั่นของภาพ ตัวเลขยิ่งมากยิ่งสั่นมาก
var rector=2
|
|