<html> <head> <title>ÇØÇÇCGI</title> <script> var imgname='image/test.jpg'; //À̹ÌÁö°æ·Î
function jsfi_run() { var cx, cy, ref; for (var i=0; i<vlines; i++) { cx = ox + i*boxwidth; cy = Math.round(oy + Math.sin(Math.PI*4*(i+cnt)/(vlines-1))*10); ref=(document.layers)?document.layers['ns4o'+i]:(document.all)?document.all['o'+i]:document.getElementById('o'+i); if (document.layers) ref.moveTo(cx, cy); else { ref.style.left = cx; ref.style.top = cy; } } cnt++; if (cnt>vlines) cnt-=vlines; setTimeout("jsfi_run()",75,"JavaScript"); }
function mtrack(e) { ox = (window.opera)?window.event.clientX:(document.all)?event.clientX+document.body.scrollLeft:e.pageX; oy = (window.opera)?window.event.clientY:(document.all)?event.clientY+document.body.scrollTop:e.pageY; }
var imgwidth = 600; //¿øº»À̹ÌÁö °¡·ÎÅ©±â¼³Á¤ var boxheight = 411; //¿øº»À̹ÌÁö ¼¼·ÎÅ©±â¼³Á¤ var boxwidth = 25; //Á¶°¢À̹ÌÁö °¡·ÎÅ©±â¼³Á¤ //¼ýÀÚ°¡ÀÛÀ»¼ö·Ï ¼¼¹ÐÇÏ°Ô Ç¥ÇöÇÏ°í, ¼Óµµ´Â ´À¸²// ¼ýÀÚ°¡³ôÀ¸¸é ¼Óµµºü¸§ var ox = 0; var oy = -1000; var vlines, cnt; var txt = '';
vlines = Math.round(imgwidth/boxwidth); cnt=0;
for (var i=0; i<vlines; i++) { if (document.layers) txt+='<layer name="ns4o'+i+'" visibility="hidden" width="'+boxwidth+'" height="'+boxheight+'" >'; txt+='<div id="o'+i+'" style="position:absolute; left:0px; top:0px; width:'+boxwidth+'; height:'+boxheight+'; visibility:visible; overflow:hidden;">'; txt+='<div id="i'+i+'" style="position:absolute; left:'+(-i*boxwidth)+'px; top:0px; overflow:hidden; cursor:default;">'; txt+='<img src='+imgname+'>'; txt+='</div></div>'; if (document.layers) txt+='</layer>'; }
document.writeln(txt);
if (document.layers) document.captureEvents(Event.MOUSEMOVE); document.onmousemove=mtrack;
jsfi_run();
</script> </head>
|