http://oxtag.com/html/ex/img_fly.html

<html>
<head>
<title>♡ 카멜롯™의 소스천국 태그피아 ♡</title>


<script language="JavaScript">
var x = 0;
var y = 0;
var offsetx = 4;
var offsety = 4;

function bounceIt() {
var el = document.all.bounce;
x += offsetx;
y += offsety;
if ((x + el.offsetWidth >= document.body.clientWidth +
document.body.scrollLeft) ||
(x <= document.body.scrollLeft)) {
offsetx = -offsetx;
if (x <= document.body.scrollLeft)
x = document.body.scrollLeft;
else
x = document.body.clientWidth - el.offsetWidth +
document.body.scrollLeft;
}
if ((y + el.offsetWidth >= document.body.clientHeight +
document.body.scrollTop) ||
(y <= document.body.scrollTop)) {
offsety = -offsety;
if (y <= document.body.scrollTop)
y = document.body.scrollTop;
else
y = document.body.clientHeight - el.offsetHeight +
document.body.scrollTop;
}
el.style.posLeft = x;
el.style.posTop = y;
}
</script>

</head>


<body onload="window.tm = setInterval('bounceIt()', 10);">


<img src="../../cgi/samhang/img/27.gif" ID="bounce" style="position:absolute; top:0; left:0; z-index:1">

</body>
</html>

Posted by 알 수 없는 사용자
,