엠

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

· 2006-08-22 (화) 10:20:00 · 2829
<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건
+
제목 글쓴이 날짜 조회
07-10-13 조회 5,107
07-10-03 조회 4,101
07-10-03 조회 3,289
07-10-03 조회 2,505
07-10-03 조회 4,610
07-10-02 조회 2,946
07-10-01 조회 3,571
07-09-28 조회 3,488
07-09-27 조회 4,550
07-08-16 조회 6,403
07-08-04 조회 2,853
07-07-25 조회 6,106
07-07-05 조회 4,001
07-07-02 조회 4,548
07-06-30 조회 4,447
07-06-20 조회 7,335
07-06-20 조회 3,947
07-06-05 조회 4,117
07-05-26 조회 3,149
07-05-17 조회 9,151
07-05-17 조회 5,194
07-05-04 조회 6,116
07-04-15 조회 6,201
07-04-13 조회 3,969
07-04-11 조회 3,385
07-03-20 조회 3,559
07-03-02 조회 6,786
07-02-27 조회 6,050
07-02-22 조회 4,444
07-01-30 조회 6,254
07-01-30 조회 1만
06-12-20 조회 3,725
06-12-18 조회 4,603
06-12-15 조회 4,583
06-12-15 조회 3,810
06-12-15 조회 3,195
06-11-30 조회 3,638
06-11-27 조회 4,530
06-10-24 조회 6,442
06-10-17 조회 4,752
06-09-22 조회 4,485
06-09-21 조회 5,991
06-09-21 조회 3,915
06-09-15 조회 6,533
06-08-20 조회 3,677
06-07-19 조회 3,322
06-07-14 조회 4,221
06-07-14 조회 4,090
06-07-11 조회 5,698
06-06-08 조회 4,275
06-06-08 조회 4,188
06-05-24 조회 3,500
06-05-24 조회 4,886
06-05-17 조회 3,595
06-05-16 조회 4,347
06-05-14 조회 6,040
06-05-12 조회 3,598
06-05-06 조회 4,249
06-05-06 조회 4,330
06-05-06 조회 3,629
06-05-06 조회 3,701
06-05-06 조회 4,151
06-04-25 조회 4,017
06-03-23 조회 5,475
06-01-20 조회 4,043
06-01-04 조회 4,250
05-12-30 조회 4,125
05-12-21 조회 4,797
05-11-09 조회 4,006
05-11-09 조회 3,788
05-10-09 조회 3,450
05-09-21 조회 6,838
05-08-14 조회 4,320
05-08-04 조회 5,502
05-07-14 조회 4,558
05-06-15 조회 4,949
05-04-23 조회 4,553
05-04-20 조회 5,009
05-04-19 조회 1.1만
05-04-19 조회 5,970
05-03-15 조회 3,785
05-03-15 조회 4,230
05-03-13 조회 2,905
05-03-13 조회 3,431
05-03-13 조회 3,418
05-03-13 조회 2,720
05-03-13 조회 5,766
05-03-13 조회 5,402
05-03-13 조회 4,334
05-03-13 조회 4,629
05-03-13 조회 7,891
05-03-13 조회 4,388
05-03-13 조회 3,470
05-03-13 조회 3,464
05-03-13 조회 8,012
05-03-13 조회 5,467
05-03-13 조회 4,119
05-03-12 조회 3,755
05-03-12 조회 4,469
05-02-24 조회 4,618