엠

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

· 2006-08-22 (화) 10:20:00 · 2876
<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건
+
제목 글쓴이 날짜 조회
10-09-25 조회 2,742
10-09-19 조회 2,778
10-09-15 조회 2,781
10-09-15 조회 4,188
10-09-15 조회 3,425
10-09-15 조회 2,523
10-09-07 조회 3,638
10-08-27 조회 4,089
10-06-11 조회 4,272
10-05-31 조회 2,516
10-02-27 조회 5,031
10-02-09 조회 3,776
09-10-10 조회 7,369
09-03-19 조회 3,228
09-02-09 조회 3,497
09-02-09 조회 4,548
08-11-01 조회 2,933
08-09-29 조회 4,587
08-09-26 조회 3,529
08-09-26 조회 3,602
08-09-26 조회 2,739
08-09-26 조회 3,781
08-09-26 조회 3,507
08-09-26 조회 4,273
08-09-18 조회 3,610
08-09-09 조회 3,251
08-08-28 조회 2,793
08-07-06 조회 3,560
08-05-21 조회 4,727
08-05-13 조회 4,567
08-04-17 조회 4,942
08-02-19 조회 3,557
08-01-18 조회 3,871
08-01-10 조회 3,842
07-10-22 조회 3,671
07-10-09 조회 4,339
07-10-03 조회 3,539
07-07-06 조회 4,231
07-07-06 조회 4,444
07-07-06 조회 4,058
07-06-28 조회 3,598
07-06-05 조회 3,600
07-06-05 조회 4,141
07-05-30 조회 3,312
07-05-02 조회 3,696
07-04-15 조회 5,176
07-04-11 조회 3,654
07-04-05 조회 3,957
07-03-31 조회 3,171
07-03-31 조회 4,148
07-03-30 조회 3,759
07-03-24 조회 4,020
07-03-22 조회 3,680
07-03-12 조회 4,431
07-02-16 조회 3,301
07-02-14 조회 5,188
07-02-10 조회 4,024
07-02-09 조회 4,411
07-01-19 조회 4,071
07-01-16 조회 5,001
06-12-16 조회 5,868
06-11-30 조회 3,627
06-11-25 조회 3,737
06-10-15 조회 5,091
06-09-26 조회 5,335
06-09-26 조회 5,444
06-09-22 조회 4,302
06-09-21 조회 3,563
06-09-21 조회 3,660
06-09-02 조회 3,506
06-08-08 조회 5,136
06-07-20 조회 3,760
06-07-17 조회 3,382
06-07-13 조회 4,206
06-07-11 조회 3,497
06-07-11 조회 3,503
06-07-11 조회 3,867
06-06-29 조회 6,091
06-06-19 조회 6,481
06-06-02 조회 3,531
06-05-24 조회 5,017
06-05-14 조회 7,808
06-05-08 조회 3,922
06-02-02 조회 5,476
05-12-16 조회 4,537
05-12-05 조회 5,182
05-06-28 조회 4,140
05-04-11 조회 4,091
05-04-11 조회 4,273
05-04-11 조회 3,341
05-03-13 조회 3,244
05-03-12 조회 4,315
04-12-08 조회 7,802
04-12-01 조회 5,213
04-11-28 조회 3,387
04-11-28 조회 3,229
04-08-05 조회 5,648
04-08-05 조회 4,994
04-08-05 조회 5,602