엠

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

· 2006-08-22 (화) 10:20:00 · 2821
<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-21 조회 3,769
06-09-21 조회 3,618
06-09-21 조회 2,931
06-09-21 조회 3,165
06-09-21 조회 4,372
06-09-21 조회 3,037
06-09-21 조회 3,539
06-09-21 조회 3,628
06-09-21 조회 3,758
06-09-21 조회 3,987
06-09-21 조회 3,672
06-09-21 조회 4,139
06-09-21 조회 3,913
06-09-21 조회 4,559
06-09-20 조회 2,951
06-09-19 조회 3,848
06-09-18 조회 3,478
06-09-15 조회 3,085
06-09-15 조회 3,489
06-09-15 조회 2,934
06-09-15 조회 6,532
06-09-15 조회 3,326
06-09-13 조회 5,288
06-09-13 조회 3,389
06-09-11 조회 2,949
06-09-11 조회 3,624
06-09-11 조회 3,371
06-09-11 조회 3,584
06-09-11 조회 3,204
06-09-11 조회 4,944
06-09-11 조회 4,446
06-09-11 조회 3,233
06-09-11 조회 3,184
06-09-10 조회 3,057
06-09-06 조회 3,065
06-09-05 조회 5,393
06-09-04 조회 4,396
06-09-04 조회 3,817
06-09-03 조회 4,382
06-09-02 조회 4,008
06-09-02 조회 3,866
06-09-02 조회 3,479
06-09-01 조회 3,225
06-09-01 조회 3,531
06-09-01 조회 4,101
06-08-31 조회 3,125
06-08-31 조회 4,187
06-08-28 조회 4,295
06-08-27 조회 3,951
06-08-27 조회 3,031
06-08-27 조회 2,706
06-08-27 조회 3,337
06-08-27 조회 3,321
06-08-27 조회 2,642
06-08-27 조회 2,672
06-08-27 조회 2,575
06-08-27 조회 3,081
06-08-27 조회 2,633
06-08-27 조회 3,199
06-08-27 조회 2,948
06-08-27 조회 2,831
06-08-27 조회 2,654
06-08-27 조회 2,863
06-08-27 조회 2,919
06-08-27 조회 2,956
06-08-27 조회 3,691
06-08-27 조회 6,321
06-08-27 조회 2,735
06-08-27 조회 2,589
06-08-27 조회 2,425
06-08-27 조회 2,631
06-08-27 조회 2,531
06-08-27 조회 2,477
06-08-27 조회 2,491
06-08-27 조회 2,392
06-08-27 조회 2,457
06-08-27 조회 3,936
06-08-27 조회 4,890
06-08-26 조회 6,267
06-08-26 조회 2,404
06-08-26 조회 5,574
06-08-25 조회 4,001
06-08-25 조회 2,485
06-08-24 조회 3,712
06-08-24 조회 4,654
06-08-24 조회 2,796
06-08-23 조회 4,845
06-08-23 조회 2,914
06-08-23 조회 4,780
06-08-23 조회 4,414
06-08-23 조회 5,209
06-08-23 조회 5,070
06-08-22 조회 2,862
06-08-22 조회 2,822
06-08-21 조회 5,286
06-08-20 조회 3,673
06-08-20 조회 3,571
06-08-19 조회 3,414
06-08-19 조회 2,965
06-08-18 조회 3,619