엠

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

· 2006-08-22 (화) 10:20:00 · 2959
<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건
+
제목 글쓴이 날짜 조회
06-09-21 조회 3,695
06-09-21 조회 3,012
06-09-21 조회 3,246
06-09-21 조회 4,474
06-09-21 조회 3,127
06-09-21 조회 3,606
06-09-21 조회 3,705
06-09-21 조회 3,849
06-09-21 조회 4,063
06-09-21 조회 3,765
06-09-21 조회 4,239
06-09-21 조회 4,011
06-09-21 조회 4,676
06-09-20 조회 3,075
06-09-19 조회 3,942
06-09-18 조회 3,600
06-09-15 조회 3,205
06-09-15 조회 3,598
06-09-15 조회 3,036
06-09-15 조회 6,649
06-09-15 조회 3,448
06-09-13 조회 5,390
06-09-13 조회 3,509
06-09-11 조회 3,027
06-09-11 조회 3,721
06-09-11 조회 3,459
06-09-11 조회 3,678
06-09-11 조회 3,306
06-09-11 조회 5,033
06-09-11 조회 4,531
06-09-11 조회 3,335
06-09-11 조회 3,266
06-09-10 조회 3,155
06-09-06 조회 3,155
06-09-05 조회 5,496
06-09-04 조회 4,479
06-09-04 조회 3,899
06-09-03 조회 4,462
06-09-02 조회 4,099
06-09-02 조회 3,957
06-09-02 조회 3,548
06-09-01 조회 3,308
06-09-01 조회 3,627
06-09-01 조회 4,187
06-08-31 조회 3,188
06-08-31 조회 4,246
06-08-28 조회 4,379
06-08-27 조회 4,006
06-08-27 조회 3,098
06-08-27 조회 2,804
06-08-27 조회 3,432
06-08-27 조회 3,401
06-08-27 조회 2,735
06-08-27 조회 2,762
06-08-27 조회 2,665
06-08-27 조회 3,160
06-08-27 조회 2,731
06-08-27 조회 3,283
06-08-27 조회 3,049
06-08-27 조회 2,928
06-08-27 조회 2,747
06-08-27 조회 2,936
06-08-27 조회 3,006
06-08-27 조회 3,031
06-08-27 조회 3,770
06-08-27 조회 6,424
06-08-27 조회 2,829
06-08-27 조회 2,676
06-08-27 조회 2,500
06-08-27 조회 2,714
06-08-27 조회 2,642
06-08-27 조회 2,576
06-08-27 조회 2,590
06-08-27 조회 2,497
06-08-27 조회 2,566
06-08-27 조회 4,020
06-08-27 조회 4,983
06-08-26 조회 6,344
06-08-26 조회 2,502
06-08-26 조회 5,660
06-08-25 조회 4,107
06-08-25 조회 2,650
06-08-24 조회 3,822
06-08-24 조회 4,753
06-08-24 조회 2,895
06-08-23 조회 4,945
06-08-23 조회 3,016
06-08-23 조회 4,863
06-08-23 조회 4,543
06-08-23 조회 5,275
06-08-23 조회 5,175
06-08-22 조회 2,960
06-08-22 조회 2,960
06-08-21 조회 5,419
06-08-20 조회 3,819
06-08-20 조회 3,697
06-08-19 조회 3,529
06-08-19 조회 3,094
06-08-18 조회 3,731
06-08-18 조회 3,265