1. Copy Script และนำไปวางในตำแหน่ง <Body> ของหน้าเว็บ


[img]reflect.jpg[/img]


<script language="JavaScript1.2">

/*
Image reflection script (Submitted by Savio, savio_d_souza@hotmail.com)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100&#39;s more DHTML scripts, visit http://dynamicdrive.com
*/

function f1(){
setInterval("mdiv.filters.wave.phase+=10",100);
}

if (document.all){
document.write(&#39;[img]&#39;+document.all.reflect.src+&#39;[/img]&#39
window.onload=f1
}

</script>

2. ตัวอย่าง การนำไปใช้งาน

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<title>webthaidd.com</title>
</head>
<body>

[img]webthaidd-test-reflect.gif[/img]


<script language="JavaScript1.2">

/*
Image reflection script (Submitted by Savio, savio_d_souza@hotmail.com)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100&#39;s more DHTML scripts, visit http://dynamicdrive.com
*/

function f1(){
setInterval("mdiv.filters.wave.phase+=10",100);
}

if (document.all){
document.write(&#39;[img]&#39;+document.all.reflect.src+&#39;[/img]&#39
window.onload=f1
}

</script>
</body>
</html>

เสร็จละครับ