엠

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

· 2006-08-22 (화) 10:20:00 · 2958
<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-08-18 조회 2,936
06-08-18 조회 3,037
06-08-14 조회 2,473
06-08-13 조회 2,765
06-08-12 조회 3,903
06-08-12 조회 3,032
06-08-11 조회 4,251
06-08-11 조회 4,200
06-08-10 조회 3,295
06-08-10 조회 2,873
06-08-09 조회 3,921
06-08-08 조회 3,929
06-08-08 조회 5,180
06-08-08 조회 3,049
06-08-07 조회 3,784
06-08-06 조회 3,417
06-08-06 조회 4,544
06-08-05 조회 2,496
06-08-05 조회 2,564
06-08-05 조회 2,851
06-08-05 조회 3,326
06-08-05 조회 2,877
06-08-05 조회 2,806
06-08-04 조회 3,187
06-08-04 조회 3,327
06-08-04 조회 6,027
06-08-04 조회 3,424
06-08-04 조회 4,282
06-08-04 조회 3,724
06-08-03 조회 3,509
06-08-01 조회 5,776
06-07-31 조회 3,627
06-07-31 조회 3,460
06-07-30 조회 3,004
06-07-30 조회 2,785
06-07-29 조회 4,473
06-07-29 조회 3,428
06-07-28 조회 7,253
06-07-27 조회 3,186
06-07-26 조회 2,936
06-07-26 조회 3,807
06-07-26 조회 2,856
06-07-26 조회 3,349
06-07-25 조회 3,223
06-07-25 조회 4,651
06-07-25 조회 3,612
06-07-25 조회 3,820
06-07-24 조회 5,476
06-07-24 조회 4,716
06-07-23 조회 3,412
06-07-23 조회 5,498
06-07-22 조회 4,446
06-07-21 조회 5,263
06-07-21 조회 3,095
06-07-21 조회 3,291
06-07-21 조회 3,253
06-07-20 조회 4,408
06-07-20 조회 3,815
06-07-20 조회 4,568
06-07-20 조회 3,785
06-07-20 조회 3,615
06-07-20 조회 3,472
06-07-20 조회 3,308
06-07-20 조회 3,235
06-07-20 조회 5,374
06-07-20 조회 3,774
06-07-20 조회 3,298
06-07-20 조회 3,338
06-07-20 조회 3,968
06-07-19 조회 3,048
06-07-19 조회 4,384
06-07-19 조회 3,927
06-07-19 조회 3,388
06-07-19 조회 2,880
06-07-19 조회 3,308
06-07-19 조회 3,159
06-07-19 조회 3,001
06-07-19 조회 3,554
06-07-19 조회 3,402
06-07-19 조회 4,979
06-07-19 조회 4,843
06-07-19 조회 3,357
06-07-19 조회 4,383
06-07-19 조회 3,082
06-07-19 조회 3,512
06-07-19 조회 3,432
06-07-17 조회 3,437
06-07-17 조회 3,271
06-07-16 조회 3,867
06-07-14 조회 3,916
06-07-14 조회 4,320
06-07-14 조회 4,194
06-07-14 조회 3,798
06-07-13 조회 4,085
06-07-13 조회 4,265
06-07-12 조회 4,011
06-07-11 조회 3,716
06-07-11 조회 4,002
06-07-11 조회 5,640
06-07-11 조회 3,552