엠

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

· 2006-08-22 (화) 10:20:00 · 2870
<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,804
06-09-21 조회 3,642
06-09-21 조회 2,963
06-09-21 조회 3,194
06-09-21 조회 4,408
06-09-21 조회 3,067
06-09-21 조회 3,560
06-09-21 조회 3,657
06-09-21 조회 3,792
06-09-21 조회 4,018
06-09-21 조회 3,712
06-09-21 조회 4,175
06-09-21 조회 3,948
06-09-21 조회 4,602
06-09-20 조회 2,988
06-09-19 조회 3,878
06-09-18 조회 3,521
06-09-15 조회 3,118
06-09-15 조회 3,519
06-09-15 조회 2,963
06-09-15 조회 6,575
06-09-15 조회 3,373
06-09-13 조회 5,321
06-09-13 조회 3,426
06-09-11 조회 2,975
06-09-11 조회 3,662
06-09-11 조회 3,408
06-09-11 조회 3,621
06-09-11 조회 3,240
06-09-11 조회 4,967
06-09-11 조회 4,473
06-09-11 조회 3,267
06-09-11 조회 3,214
06-09-10 조회 3,094
06-09-06 조회 3,093
06-09-05 조회 5,425
06-09-04 조회 4,432
06-09-04 조회 3,841
06-09-03 조회 4,409
06-09-02 조회 4,044
06-09-02 조회 3,896
06-09-02 조회 3,503
06-09-01 조회 3,248
06-09-01 조회 3,568
06-09-01 조회 4,124
06-08-31 조회 3,150
06-08-31 조회 4,207
06-08-28 조회 4,328
06-08-27 조회 3,975
06-08-27 조회 3,058
06-08-27 조회 2,755
06-08-27 조회 3,371
06-08-27 조회 3,351
06-08-27 조회 2,684
06-08-27 조회 2,708
06-08-27 조회 2,605
06-08-27 조회 3,099
06-08-27 조회 2,673
06-08-27 조회 3,226
06-08-27 조회 2,992
06-08-27 조회 2,874
06-08-27 조회 2,695
06-08-27 조회 2,892
06-08-27 조회 2,953
06-08-27 조회 2,988
06-08-27 조회 3,725
06-08-27 조회 6,368
06-08-27 조회 2,768
06-08-27 조회 2,624
06-08-27 조회 2,451
06-08-27 조회 2,661
06-08-27 조회 2,573
06-08-27 조회 2,514
06-08-27 조회 2,535
06-08-27 조회 2,433
06-08-27 조회 2,500
06-08-27 조회 3,970
06-08-27 조회 4,927
06-08-26 조회 6,295
06-08-26 조회 2,456
06-08-26 조회 5,613
06-08-25 조회 4,058
06-08-25 조회 2,594
06-08-24 조회 3,766
06-08-24 조회 4,689
06-08-24 조회 2,834
06-08-23 조회 4,871
06-08-23 조회 2,955
06-08-23 조회 4,819
06-08-23 조회 4,499
06-08-23 조회 5,237
06-08-23 조회 5,098
06-08-22 조회 2,895
06-08-22 조회 2,871
06-08-21 조회 5,334
06-08-20 조회 3,724
06-08-20 조회 3,618
06-08-19 조회 3,448
06-08-19 조회 3,017
06-08-18 조회 3,657