엠

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

· 2006-08-22 (화) 10:20:00 · 2866
<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,798
06-09-21 조회 3,640
06-09-21 조회 2,960
06-09-21 조회 3,193
06-09-21 조회 4,407
06-09-21 조회 3,066
06-09-21 조회 3,559
06-09-21 조회 3,657
06-09-21 조회 3,790
06-09-21 조회 4,017
06-09-21 조회 3,706
06-09-21 조회 4,175
06-09-21 조회 3,946
06-09-21 조회 4,600
06-09-20 조회 2,984
06-09-19 조회 3,876
06-09-18 조회 3,516
06-09-15 조회 3,116
06-09-15 조회 3,517
06-09-15 조회 2,960
06-09-15 조회 6,574
06-09-15 조회 3,372
06-09-13 조회 5,320
06-09-13 조회 3,421
06-09-11 조회 2,971
06-09-11 조회 3,658
06-09-11 조회 3,404
06-09-11 조회 3,618
06-09-11 조회 3,239
06-09-11 조회 4,966
06-09-11 조회 4,469
06-09-11 조회 3,261
06-09-11 조회 3,211
06-09-10 조회 3,091
06-09-06 조회 3,092
06-09-05 조회 5,421
06-09-04 조회 4,428
06-09-04 조회 3,840
06-09-03 조회 4,407
06-09-02 조회 4,040
06-09-02 조회 3,896
06-09-02 조회 3,501
06-09-01 조회 3,246
06-09-01 조회 3,567
06-09-01 조회 4,123
06-08-31 조회 3,148
06-08-31 조회 4,205
06-08-28 조회 4,325
06-08-27 조회 3,973
06-08-27 조회 3,056
06-08-27 조회 2,750
06-08-27 조회 3,367
06-08-27 조회 3,348
06-08-27 조회 2,681
06-08-27 조회 2,706
06-08-27 조회 2,601
06-08-27 조회 3,097
06-08-27 조회 2,673
06-08-27 조회 3,224
06-08-27 조회 2,989
06-08-27 조회 2,873
06-08-27 조회 2,694
06-08-27 조회 2,890
06-08-27 조회 2,946
06-08-27 조회 2,984
06-08-27 조회 3,723
06-08-27 조회 6,367
06-08-27 조회 2,766
06-08-27 조회 2,623
06-08-27 조회 2,449
06-08-27 조회 2,659
06-08-27 조회 2,569
06-08-27 조회 2,510
06-08-27 조회 2,533
06-08-27 조회 2,431
06-08-27 조회 2,499
06-08-27 조회 3,969
06-08-27 조회 4,926
06-08-26 조회 6,294
06-08-26 조회 2,455
06-08-26 조회 5,610
06-08-25 조회 4,057
06-08-25 조회 2,594
06-08-24 조회 3,762
06-08-24 조회 4,686
06-08-24 조회 2,832
06-08-23 조회 4,871
06-08-23 조회 2,953
06-08-23 조회 4,817
06-08-23 조회 4,497
06-08-23 조회 5,233
06-08-23 조회 5,097
06-08-22 조회 2,891
06-08-22 조회 2,867
06-08-21 조회 5,331
06-08-20 조회 3,723
06-08-20 조회 3,615
06-08-19 조회 3,445
06-08-19 조회 3,013
06-08-18 조회 3,657