오른쪽마우스클릭시메뉴(익스전용)

· 2006-08-22 (화) 10:20:00 · 2811
<style>
<!--
.skin0{
position:absolute;
width:150px;
border:1px solid black;
background-color:menu;
font-family:Verdana;
line-height:20px;
cursor:default;
visibility:hidden;
}

.skin1{
cursor: default;
font: menutext;
position: absolute;
width: 165px;
background-color: menu;
border: 1 solid buttonface;
visibility:hidden;
border: 2 outset buttonhighlight;
}

.menuitems{
padding-left:5px;
padding-right:5px;
}
-->
</style>

<script language="JavaScript1.2">
//set the skin of the menu (0 or 1, with 1 rendering a default Windows menu like skin)
var menuskin=1

//set this variable to 1 if you wish the URLs of the highlighted menu to be displayed in the status bar
var display_url=0


function showmenuie5(){
//Find out how close the mouse is to the corner of the window
var rightedge=document.body.clientWidth-event.clientX
var bottomedge=document.body.clientHeight-event.clientY

//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<ie5menu.offsetWidth)
//move the horizontal position of the menu to the left by it's width
ie5menu.style.left=document.body.scrollLeft+event.clientX-ie5menu.offsetWidth
else
//position the horizontal position of the menu where the mouse was clicked
ie5menu.style.left=document.body.scrollLeft+event.clientX

//same concept with the vertical position
if (bottomedge<ie5menu.offsetHeight)
ie5menu.style.top=document.body.scrollTop+event.clientY-ie5menu.offsetHeight
else
ie5menu.style.top=document.body.scrollTop+event.clientY

ie5menu.style.visibility="visible"
return false
}

function hidemenuie5(){
ie5menu.style.visibility="hidden"
}

function highlightie5(){
if (event.srcElement.className=="menuitems"){
event.srcElement.style.backgroundColor="highlight"
event.srcElement.style.color="white"
if (display_url==1)
window.status=event.srcElement.url
}
}

function lowlightie5(){
if (event.srcElement.className=="menuitems"){
event.srcElement.style.backgroundColor=""
event.srcElement.style.color="black"
window.status=''
}
}

function jumptoie5(){
if (event.srcElement.className=="menuitems"){
if (event.srcElement.getAttribute("target")!=null)
window.open(event.srcElement.url,event.srcElement.getAttribute("target"))
else
window.location=event.srcElement.url
}
}
</script>



<!--- //////// 이부분이 내용 //////////////////////////////////// --->
<!--[if IE]>
<div id="ie5menu" class="skin0" onMouseover="highlightie5()" onMouseout="lowlightie5()" onClick="jumptoie5
()">

<div class="menuitems" url="http://www.taeyo.net/">태요홈</div>
<div class="menuitems" url=""><hr></div>
<div class="menuitems" url="http://www.empas.com">엠파스</div>
<div class="menuitems" url="http://www.naver.com">네이버</div>
<div class="menuitems" url="http://www.yahoo.co.kr">야후</div>
<div class="menuitems" url="http://www.google.com">구글</div>

</div>
<![endif]-->
<!--- //////// 이부분이 내용 끝 //////////////////////////////////// --->

<script language="JavaScript1.2">
if (document.all&&window.print){
if (menuskin==0)
ie5menu.className="skin0"
else
ie5menu.className="skin1"
document.oncontextmenu=showmenuie5
document.body.onclick=hidemenuie5
}
</script>

<p> </p><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
06-09-11 조회 3,225
06-09-10 조회 3,053
06-09-05 조회 5,388
06-09-02 조회 3,860
06-09-01 조회 3,218
06-09-01 조회 3,528
06-08-27 조회 3,318
06-08-27 조회 3,074
06-08-27 조회 2,825
06-08-27 조회 2,577
06-08-27 조회 2,485
06-08-25 조회 3,998
06-08-25 조회 2,482
06-08-23 조회 4,836
06-08-20 조회 3,566
06-08-19 조회 3,406
06-08-18 조회 2,832
06-08-18 조회 2,943
06-08-11 조회 4,106
06-08-10 조회 2,787
06-08-06 조회 4,461
06-08-05 조회 3,237
06-08-05 조회 2,735
06-07-31 조회 3,382
06-07-30 조회 2,923
06-07-29 조회 3,343
06-07-26 조회 2,857
06-07-26 조회 3,252
06-07-25 조회 3,733
06-07-20 조회 3,399
06-07-20 조회 3,661
06-07-19 조회 3,813
06-07-19 조회 2,879
06-07-19 조회 4,729
06-07-14 조회 3,675
06-07-13 조회 3,974
06-07-11 조회 3,039
06-07-11 조회 2,773
06-07-11 조회 4,714
06-07-11 조회 2,548
06-07-11 조회 2,916
06-06-24 조회 3,967
06-06-24 조회 3,424
06-06-13 조회 4,370
06-06-13 조회 3,273
06-06-11 조회 3,159
06-06-08 조회 3,227
06-06-08 조회 3,380
06-06-08 조회 3,803
06-06-07 조회 3,677
06-06-05 조회 3,894
06-06-02 조회 3,454
06-06-01 조회 4,110
06-05-28 조회 3,770
06-05-26 조회 4,338
06-05-22 조회 3,171
06-05-15 조회 3,629
06-05-14 조회 6,989
06-05-11 조회 3,539
06-05-11 조회 4,132
06-05-11 조회 3,601
06-05-11 조회 2,495
06-05-11 조회 2,763
06-05-11 조회 2,416
06-05-10 조회 3,888
06-05-09 조회 4,768
06-05-07 조회 2,570
06-05-07 조회 2,810
06-05-07 조회 2,517
06-05-06 조회 3,696
06-04-28 조회 3,366
06-04-25 조회 3,734
06-04-25 조회 3,469
06-04-22 조회 3,483
06-04-18 조회 4,488
06-04-14 조회 5,135
06-03-27 조회 3,801
06-03-06 조회 3,807
06-03-05 조회 5,112
06-02-24 조회 3,756
06-02-23 조회 4,171
06-02-22 조회 3,994
06-02-22 조회 3,300
06-01-15 조회 3,631
06-01-10 조회 3,595
06-01-05 조회 4,782
05-12-30 조회 5,496
05-12-23 조회 3,631
05-12-01 조회 3,365
05-09-29 조회 4,480
05-09-27 조회 4,868
05-09-22 조회 6,087
05-09-15 조회 3,012
05-09-08 조회 3,910
05-09-05 조회 5,619
05-09-01 조회 4,700
05-09-01 조회 5,817
05-08-21 조회 3,255
05-08-18 조회 3,597
05-08-17 조회 3,716