엠

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

· 2006-08-22 (화) 10:20:00 · 2843
<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-11-28 조회 4,131
06-11-28 조회 6,411
06-11-27 조회 3,633
06-11-27 조회 4,543
06-11-27 조회 5,462
06-11-25 조회 3,709
06-11-24 조회 3,671
06-11-22 조회 5,343
06-11-21 조회 3,961
06-11-18 조회 4,187
06-11-15 조회 3,403
06-11-15 조회 3,431
06-11-11 조회 3,153
06-11-10 조회 4,531
06-11-04 조회 3,268
06-10-29 조회 3,926
06-10-29 조회 2,942
06-10-24 조회 6,456
06-10-17 조회 4,765
06-10-17 조회 5,505
06-10-16 조회 4,257
06-10-16 조회 3,673
06-10-15 조회 5,069
06-10-13 조회 3,793
06-10-13 조회 4,161
06-10-13 조회 4,107
06-10-12 조회 5,313
06-10-12 조회 4,285
06-10-12 조회 4,235
06-10-12 조회 4,797
06-10-10 조회 4,124
06-10-10 조회 3,361
06-10-10 조회 3,401
06-10-10 조회 3,341
06-10-09 조회 3,979
06-10-04 조회 3,722
06-10-02 조회 4,512
06-10-01 조회 4,427
06-09-29 조회 3,003
06-09-29 조회 3,906
06-09-27 조회 8,999
06-09-27 조회 3,652
06-09-26 조회 4,313
06-09-26 조회 4,019
06-09-26 조회 4,152
06-09-26 조회 3,332
06-09-26 조회 3,590
06-09-26 조회 5,310
06-09-26 조회 3,424
06-09-26 조회 5,425
06-09-26 조회 3,538
06-09-26 조회 3,239
06-09-26 조회 3,475
06-09-26 조회 3,028
06-09-26 조회 3,603
06-09-26 조회 3,386
06-09-26 조회 4,293
06-09-26 조회 2,983
06-09-26 조회 4,685
06-09-25 조회 3,901
06-09-25 조회 4,636
06-09-25 조회 4,594
06-09-25 조회 4,342
06-09-25 조회 6,596
06-09-23 조회 3,302
06-09-23 조회 3,394
06-09-23 조회 3,439
06-09-23 조회 4,520
06-09-22 조회 4,921
06-09-22 조회 4,869
06-09-22 조회 3,500
06-09-22 조회 3,645
06-09-22 조회 3,845
06-09-22 조회 4,275
06-09-22 조회 3,721
06-09-22 조회 3,857
06-09-22 조회 3,677
06-09-22 조회 3,466
06-09-22 조회 4,488
06-09-22 조회 4,510
06-09-22 조회 4,200
06-09-21 조회 6,009
06-09-21 조회 3,798
06-09-21 조회 4,514
06-09-21 조회 4,273
06-09-21 조회 3,184
06-09-21 조회 4,281
06-09-21 조회 2,938
06-09-21 조회 3,420
06-09-21 조회 3,496
06-09-21 조회 5,154
06-09-21 조회 4,274
06-09-21 조회 4,233
06-09-21 조회 3,671
06-09-21 조회 3,077
06-09-21 조회 2,676
06-09-21 조회 3,577
06-09-21 조회 3,420
06-09-21 조회 2,868
06-09-21 조회 2,889