<script type="text/javascript"> function abspos(e){ this.x = e.clientX + (document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft); this.y = e.clientY + (document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop); return this; } function itemClick(e){ var ex_obj = document.getElementById('lay'); if(!e) e = window.Event; pos = abspos(e); ex_obj.style.left = pos.x+"px"; ex_obj.style.top = (pos.y+10)+"px"; ex_obj.style.display = ex_obj.style.display=='none'?'block':'none'; } </script> <div id="lay" style="position:absolute; display:none;">내용이 어쩌고 저쩌고</div> <div style="padding:300px 0 0 200px;"><input type="button" onclick="itemClick(event);" value="클릭"></div>