엠

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

· 2006-08-22 (화) 10:20:00 · 2900
<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건
+
제목 글쓴이 날짜 조회
07-07-16 조회 3,113
07-07-06 조회 2,997
07-07-06 조회 3,430
07-06-23 조회 3,261
07-06-16 조회 2,768
07-05-20 조회 4,266
07-05-09 조회 3,449
07-05-09 조회 6,086
07-05-04 조회 2,684
07-04-30 조회 9,819
07-04-27 조회 4,323
07-04-26 조회 3,438
07-04-25 조회 5,276
07-04-18 조회 7,777
07-04-13 조회 3,110
07-04-12 조회 6,624
07-04-12 조회 5,030
07-04-12 조회 3,335
07-04-11 조회 5,708
07-04-05 조회 6,353
07-03-24 조회 4,411
07-03-20 조회 3,731
07-03-18 조회 3,987
07-03-18 조회 4,733
07-03-17 조회 4,229
07-03-16 조회 4,124
07-03-15 조회 5,286
07-03-13 조회 5,393
07-03-13 조회 3,579
07-03-08 조회 4,489
07-03-08 조회 3,973
07-03-08 조회 3,286
07-03-08 조회 4,177
07-03-05 조회 4,423
07-03-04 조회 2,902
07-03-01 조회 5,938
07-02-28 조회 3,227
07-02-27 조회 4,400
07-02-26 조회 3,311
07-02-26 조회 3,027
07-02-23 조회 3,659
07-02-23 조회 3,628
07-02-22 조회 4,008
07-02-22 조회 3,815
07-02-19 조회 3,846
07-02-17 조회 4,863
07-02-14 조회 8,160
07-02-12 조회 3,930
07-02-10 조회 3,548
07-02-02 조회 3,791
07-01-31 조회 3,468
07-01-29 조회 3,326
07-01-25 조회 5,111
07-01-21 조회 3,257
07-01-19 조회 3,042
06-12-15 조회 4,045
06-12-15 조회 4,462
06-12-15 조회 2,948
06-12-15 조회 4,490
06-12-15 조회 3,382
06-12-15 조회 4,092
06-12-15 조회 3,038
06-12-15 조회 2,765
06-12-15 조회 4,629
06-12-15 조회 3,174
06-12-15 조회 3,277
06-12-07 조회 4,718
06-12-07 조회 4,006
06-12-04 조회 4,654
06-11-27 조회 3,695
06-11-21 조회 4,016
06-11-15 조회 3,441
06-11-04 조회 3,329
06-10-29 조회 3,984
06-10-13 조회 3,842
06-10-13 조회 4,215
06-10-13 조회 4,172
06-10-12 조회 5,363
06-10-12 조회 4,274
06-10-04 조회 3,771
06-10-02 조회 4,557
06-09-29 조회 3,043
06-09-26 조회 3,384
06-09-26 조회 3,647
06-09-26 조회 3,292
06-09-26 조회 3,441
06-09-26 조회 4,342
06-09-25 조회 4,646
06-09-22 조회 4,988
06-09-22 조회 3,551
06-09-21 조회 4,325
06-09-21 조회 4,335
06-09-21 조회 3,543
06-09-21 조회 5,191
06-09-21 조회 3,721
06-09-21 조회 3,453
06-09-20 조회 3,024
06-09-15 조회 3,144
06-09-13 조회 3,465
06-09-11 조회 3,279