ȸéÀüü ½ºÅ©·Ñ ÀÚµ¿È帧,Á¤Áö |
|
|
 ȨÆäÀÌÁö |
21³â Àü |
<head> ¿Í </head>»çÀÌ
<script language="Javascript">
<!--
var x=0; y=0; cX=0; cY=0
var tM
var running=false
if (document.layers){
document.captureEvents(Event.MOUSEMOVE)
}
function FindXY(loc) {
cX = (navigator.appName.indexOf('Netscape', 0) != -1) ? innerWidth : document.body.clientWidth;
cY = (navigator.appName.indexOf('Netscape', 0) != -1) ? innerHeight : document.body.clientHeight;
x = (document.layers) ? loc.pageX : event.clientX;
y = (document.layers) ? loc.pageY : event.clientY;
window.status = 'x : ' + x + ' / ' + cX + ' y : ' + y + ' / ' + cY;
orMove();
}
document.onmousemove = FindXY;
// -->
</script>
<body>¿Í </body>»çÀÌ
<script>
<!--
cX = (navigator.appName.indexOf('Netscape', 0) != -1) ? innerWidth : document.body.clientWidth;
cY = (navigator.appName.indexOf('Netscape', 0) != -1) ? innerHeight : document.body.clientHeight;
function orMove(){
if (y > 60&&(cY - y) > 60) {
if (running) {
clearTimeout(tM)
running = false
}
}
else {
// if ( (cX-x) < 50 )
if (y < 60) {
if (y < 30) scrollBy(0,-2)
else scrollBy(0,-1)
}
else {
if ((cY - y) < 30) scrollBy(0,2)
else scrollBy(0,1)
}
running = true
tM = setTimeout('orMove()',20)
}
}
// -->
</script>
|
|
̵̧ : 473 |
̵̧
¸ñ·Ï
|
|