엠

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

· 2006-08-22 (화) 10:20:00 · 2963
<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,187건
+
제목 글쓴이 날짜 조회
07-03-09 조회 4,048
07-03-08 조회 4,530
07-03-08 조회 4,024
07-03-08 조회 2,900
07-03-08 조회 3,326
07-03-08 조회 4,939
07-03-08 조회 4,220
07-03-07 조회 4,201
07-03-07 조회 4,865
07-03-07 조회 3,372
07-03-06 조회 3,520
07-03-05 조회 4,470
07-03-05 조회 3,062
07-03-04 조회 3,446
07-03-04 조회 3,733
07-03-04 조회 2,949
07-03-04 조회 3,359
07-03-04 조회 3,145
07-03-03 조회 3,730
07-03-02 조회 3,135
07-03-02 조회 2,927
07-03-02 조회 2,967
07-03-02 조회 2,978
07-03-02 조회 3,979
07-03-02 조회 2,799
07-03-02 조회 6,875
07-03-01 조회 3,645
07-03-01 조회 2,845
07-03-01 조회 5,981
07-02-28 조회 3,265
07-02-27 조회 6,146
07-02-27 조회 4,445
07-02-26 조회 3,372
07-02-26 조회 3,046
07-02-26 조회 3,383
07-02-26 조회 3,007
07-02-26 조회 3,079
07-02-26 조회 3,138
07-02-25 조회 3,752
07-02-24 조회 4,856
07-02-24 조회 7,200
07-02-24 조회 5,051
07-02-23 조회 4,381
07-02-23 조회 3,431
07-02-23 조회 3,704
07-02-23 조회 3,451
07-02-23 조회 3,677
07-02-23 조회 3,636
07-02-22 조회 4,056
07-02-22 조회 3,881
07-02-22 조회 3,300
07-02-22 조회 4,576
07-02-21 조회 4,944
07-02-21 조회 5,132
07-02-21 조회 4,658
07-02-20 조회 4,719
07-02-19 조회 3,870
07-02-19 조회 3,765
07-02-19 조회 3,720
07-02-19 조회 3,587
07-02-19 조회 3,878
07-02-18 조회 5,162
07-02-17 조회 4,896
07-02-16 조회 3,358
07-02-15 조회 3,243
07-02-15 조회 2,798
07-02-14 조회 5,247
07-02-14 조회 7,132
07-02-14 조회 8,211
07-02-14 조회 3,867
07-02-12 조회 3,975
07-02-12 조회 5,451
07-02-12 조회 3,506
07-02-11 조회 4,890
07-02-10 조회 4,214
07-02-10 조회 4,101
07-02-10 조회 3,608
07-02-10 조회 3,860
07-02-09 조회 3,980
07-02-09 조회 4,478
07-02-08 조회 5,004
07-02-08 조회 4,639
07-02-04 조회 4,127
07-02-04 조회 3,660
07-02-03 조회 4,271
07-02-03 조회 4,356
07-02-02 조회 3,844
07-02-02 조회 3,666
07-02-02 조회 4,677
07-02-02 조회 6,354
07-02-02 조회 6,476
07-02-01 조회 3,694
07-01-31 조회 3,546
07-01-30 조회 6,415
07-01-30 조회 1만
07-01-29 조회 3,390
07-01-28 조회 6,299
07-01-27 조회 5,797
07-01-26 조회 3,933
07-01-26 조회 6,351