網頁漂浮廣圖片特效
<pre>
<div id=
<img src=
</div>
<script>
var x =
var xin = true
var step =
var delay =
var obj=document
function floatAD() {
var L=T=
var R= document
var B = document
obj
obj
x = x + step*(xin?
if (x < L) { xin = true; x = L}
if (x > R){ xin = false; x = R}
y = y + step*(yin?
if (y < T) { yin = true; y = T }
if (y > B) { yin = false; y = B }
}
var itl= setInterval(
obj
obj
</script>
</pre>
From:http://tw.wingwit.com/Article/program/Java/Javascript/201311/25462.html