오른쪽마우스 커스터마이징[쓸만한눔~~!]

EX에서는 오른쪽마우스클릭시 메뉴를 띄우는 소스지요..
NS까지 먹히는 눔이 없길래 찾다가..모든 부라우저에서 먹히는
쓸만한 눔을 하나 뚱쳐서 공수해왔습니다..하하하
 
 
<script type="text/javascript">
<!--
var ie = document.all
var ns6 = document.getElementById&&!document.all
var isMenu = false ;
var menuSelObj = null ;
var overpopupmenu = false;
function mouseSelect(e)
{
var obj = ns6 ? e.target.parentNode : event.srcElement.parentElement;
if( isMenu )
{
if( overpopupmenu == false )
{
isMenu = false ;
overpopupmenu = false;
document.getElementById('menudiv').style.display = "none" ;
return true ;
}
return true ;
}
return false;
}
// POP UP MENU
function ItemSelMenu(e)
{
var obj = ns6 ? e.target.parentNode : event.srcElement.parentElement;
menuSelObj = obj ;
if (ns6)
{
document.getElementById('menudiv').style.left = e.clientX+document.body.scrollLeft;
document.getElementById('menudiv').style.top = e.clientY+document.body.scrollTop;
} else
{
document.getElementById('menudiv').style.pixelLeft = event.clientX+document.body.scrollLeft;
document.getElementById('menudiv').style.pixelTop = event.clientY+document.body.scrollTop;
}
document.getElementById('menudiv').style.display = "";
isMenu = true;
return false ;
}
document.onmousedown = mouseSelect;
document.oncontextmenu = ItemSelMenu;
//-->
</script>
 
스크립은 위에걸 추가하시고
해당하는 페이지에 아래와같은 형식으로 첨부..
 
<!--------------------- BEGIN POPUP MENU -------------------------->
<div id="menudiv" style="width:200px; height:200px; position:absolute; left:0px; top:0px; z-index:10000;" onmouseover="javascript:overpopupmenu=true;" onmouseout="javascript:overpopupmenu=false;">
<table width=100 cellspacing=2 cellpadding=0 bgcolor="#99cc66">
<tr><td> 에벌레~~~ </td></tr>
</table>
</div>
<!--------------------- END POPUP MENU -------------------------->
|

댓글 4개

현장나갔다가 지금들어와서 글쓰려니..괜히 바쁜것같네요..ㅋ~@
로그아웃합니다..<===자체 무플방지용
감사합니다.
기회가 되면 저두 적용해 봐야 겠습니다. ^^

감사 합니다.
미투..
댓글을 작성하시려면 로그인이 필요합니다. 로그인

자유게시판

+
제목 글쓴이 날짜 조회
19년 전 조회 2,255
19년 전 조회 2,058
19년 전 조회 2,108
19년 전 조회 1,965
19년 전 조회 1,919
19년 전 조회 2,107
19년 전 조회 1,945
19년 전 조회 2,390
19년 전 조회 2,037
19년 전 조회 2,254
19년 전 조회 2,163
19년 전 조회 2,090
19년 전 조회 3,592
19년 전 조회 2,357
19년 전 조회 2,113
19년 전 조회 2,986
19년 전 조회 1,991
19년 전 조회 2,072
19년 전 조회 2,045
19년 전 조회 2,482
19년 전 조회 2,084
19년 전 조회 4,468
19년 전 조회 2,077
19년 전 조회 1,807
19년 전 조회 2,089
19년 전 조회 1,998
19년 전 조회 2,571
19년 전 조회 2,102
19년 전 조회 2,260
19년 전 조회 2,082
🐛 버그신고