¾Æ·¡´Â º» ¿¹Á¦ÀÇ ÀÚ¹Ù½ºÅ©¸³Æ®ÀÔ´Ï´Ù. ¾ÆÀÌÄÜÁöÁ¤ ¸µÅ©¸¦ ¹Ù²ãÁÖ½Ã¸é ¸µÅ©µÇ¾îÀÖ´Â À̹ÌÁö°¡ ¹Ù²î°Ô µÇ¸ç À̹ÌÁö À§Ä¡Á¶Á¤À» ÇϽǼöµµ ÀÖ½À´Ï´Ù.
<html> <head> <title>ÇØÇÇCGI</title> <script type="text/javascript"> <!-- var bulletimg='<img id="bullet" style="position:absolute; left: -300px" src="http://www.blueb.co.kr/SRC/javascript/image1/flower01.gif">' //¾ÆÀÌÄÜ ÁöÁ¤ var bulletoffX=-35 //À̹ÌÁö À§Ä¡ Á¶Á¤ var bulletoffY=26 //À̹ÌÁö À§Ä¡ Á¶Á¤
function caloffset(what, offsettype){ var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop; var parentEl=what.offsetParent; while (parentEl!=null){ totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop; parentEl=parentEl.offsetParent; } return totaloffset; }
function displaybullet(linkobj){ bulletobj.style.left=caloffset(linkobj, "left")-bulletobj.width-bulletoffX+"px" bulletobj.style.top=caloffset(linkobj, "top")-bulletoffY+linkobj.offsetHeight/3+"px" bulletobj.style.visibility="visible" }
function modifylinks(){ bulletobj=document.all? document.all.bullet : document.getElementById("bullet") for (i=0; i<document.links.length; i++){ if (document.links[i].className=="ddbullet"){ document.links[i].onmouseover=function(){displaybullet(this)} document.links[i].onmouseout=function(){bulletobj.style.visibility="hidden"} } } }
if (document.all || document.getElementById) document.write(bulletimg)
if (window.addEventListener) window.addEventListener("load", modifylinks, false) else if (window.attachEvent) window.attachEvent("onload", modifylinks) else if (document.getElementById || document.all) window.onload=modifylinks //--> </script> </head>
<body> ¸µÅ© À§¿¡ ¸¶¿ì½º¸¦ ¿Ã·Áº¸¼¼¿ä.. <br><br> <a href="http://www.happycgi.com/" class="ddbullet">¸µÅ© 1</a> <a href="http://www.happycgi.com/" class="ddbullet">¸µÅ© 1</a> <a href="http://www.happycgi.com/" class="ddbullet">¸µÅ© 1</a> <a href="http://www.happycgi.com/" class="ddbullet">¸µÅ© 1</a> <a href="http://www.happycgi.com/" class="ddbullet">¸µÅ© 1</a> <a href="http://www.happycgi.com/" class="ddbullet">¸µÅ© 1</a> <a href="http://www.happycgi.com/" class="ddbullet">¸µÅ© 1</a>
|