엠

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

· 2006-08-22 (화) 10:20:00 · 2815
<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-12-15 조회 4,416
06-12-15 조회 2,835
06-12-15 조회 3,143
06-12-15 조회 2,991
06-12-15 조회 2,931
06-12-15 조회 2,716
06-12-15 조회 4,361
06-12-15 조회 2,826
06-12-15 조회 2,988
06-12-15 조회 2,615
06-12-15 조회 3,260
06-12-15 조회 3,510
06-12-15 조회 2,759
06-12-15 조회 2,908
06-12-12 조회 3,261
06-12-11 조회 4,384
06-12-10 조회 4,036
06-12-07 조회 3,548
06-12-07 조회 3,839
06-11-30 조회 3,105
06-11-27 조회 5,442
06-11-11 조회 3,139
06-10-16 조회 3,646
06-10-10 조회 3,349
06-09-27 조회 8,981
06-09-26 조회 4,123
06-09-21 조회 3,779
06-09-21 조회 3,397
06-09-21 조회 4,259
06-09-21 조회 4,220
06-09-21 조회 3,554
06-09-21 조회 3,762
06-09-21 조회 3,613
06-09-21 조회 4,369
06-09-21 조회 4,555
06-09-18 조회 3,475
06-09-15 조회 3,486
06-09-15 조회 3,317
06-09-11 조회 3,618
06-09-11 조회 3,370
06-09-11 조회 3,581
06-09-11 조회 4,939
06-09-11 조회 4,443
06-09-06 조회 3,062
06-09-04 조회 3,815
06-09-02 조회 4,002
06-09-01 조회 4,098
06-08-28 조회 4,293
06-08-27 조회 3,336
06-08-27 조회 2,671
06-08-27 조회 2,573
06-08-27 조회 3,197
06-08-27 조회 2,862
06-08-27 조회 2,913
06-08-27 조회 6,319
06-08-27 조회 2,525
06-08-27 조회 2,454
06-08-24 조회 4,652
06-08-23 조회 2,911
06-08-22 조회 2,857
06-08-22 조회 2,816
06-08-19 조회 2,963
06-08-12 조회 2,926
06-08-11 조회 4,172
06-08-08 조회 2,962
06-08-06 조회 3,318
06-08-05 조회 2,755
06-08-04 조회 3,233
06-08-04 조회 4,199
06-08-03 조회 3,408
06-07-25 조회 3,521
06-07-23 조회 3,286
06-07-22 조회 4,332
06-07-21 조회 2,979
06-07-21 조회 3,191
06-07-21 조회 3,152
06-07-20 조회 4,483
06-07-20 조회 5,270
06-07-20 조회 3,834
06-07-19 조회 4,294
06-07-19 조회 3,214
06-07-19 조회 4,869
06-07-19 조회 4,256
06-07-19 조회 3,377
06-07-12 조회 3,909
06-07-11 조회 5,541
06-07-11 조회 4,204
06-07-11 조회 2,736
06-07-11 조회 4,394
06-07-11 조회 3,513
06-07-11 조회 3,756
06-07-11 조회 2,892
06-07-11 조회 2,790
06-07-11 조회 3,483
06-06-27 조회 4,551
06-06-21 조회 4,230
06-06-15 조회 3,908
06-06-10 조회 3,346
06-06-05 조회 3,139
06-05-31 조회 4,221