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

· 2006-08-22 (화) 10:20:00 · 2808
<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,411
06-12-15 조회 2,829
06-12-15 조회 3,137
06-12-15 조회 2,987
06-12-15 조회 2,924
06-12-15 조회 2,709
06-12-15 조회 4,355
06-12-15 조회 2,818
06-12-15 조회 2,981
06-12-15 조회 2,606
06-12-15 조회 3,256
06-12-15 조회 3,501
06-12-15 조회 2,757
06-12-15 조회 2,905
06-12-12 조회 3,257
06-12-11 조회 4,378
06-12-10 조회 4,031
06-12-07 조회 3,544
06-12-07 조회 3,836
06-11-30 조회 3,100
06-11-27 조회 5,438
06-11-11 조회 3,135
06-10-16 조회 3,636
06-10-10 조회 3,345
06-09-27 조회 8,977
06-09-26 조회 4,115
06-09-21 조회 3,776
06-09-21 조회 3,394
06-09-21 조회 4,255
06-09-21 조회 4,216
06-09-21 조회 3,552
06-09-21 조회 3,757
06-09-21 조회 3,608
06-09-21 조회 4,364
06-09-21 조회 4,551
06-09-18 조회 3,465
06-09-15 조회 3,480
06-09-15 조회 3,315
06-09-11 조회 3,612
06-09-11 조회 3,366
06-09-11 조회 3,575
06-09-11 조회 4,926
06-09-11 조회 4,437
06-09-06 조회 3,061
06-09-04 조회 3,813
06-09-02 조회 3,998
06-09-01 조회 4,093
06-08-28 조회 4,288
06-08-27 조회 3,333
06-08-27 조회 2,668
06-08-27 조회 2,569
06-08-27 조회 3,193
06-08-27 조회 2,862
06-08-27 조회 2,910
06-08-27 조회 6,315
06-08-27 조회 2,521
06-08-27 조회 2,448
06-08-24 조회 4,646
06-08-23 조회 2,901
06-08-22 조회 2,852
06-08-22 조회 2,809
06-08-19 조회 2,957
06-08-12 조회 2,923
06-08-11 조회 4,169
06-08-08 조회 2,960
06-08-06 조회 3,315
06-08-05 조회 2,750
06-08-04 조회 3,227
06-08-04 조회 4,196
06-08-03 조회 3,406
06-07-25 조회 3,518
06-07-23 조회 3,275
06-07-22 조회 4,326
06-07-21 조회 2,973
06-07-21 조회 3,187
06-07-21 조회 3,146
06-07-20 조회 4,479
06-07-20 조회 5,265
06-07-20 조회 3,829
06-07-19 조회 4,290
06-07-19 조회 3,208
06-07-19 조회 4,862
06-07-19 조회 4,246
06-07-19 조회 3,373
06-07-12 조회 3,902
06-07-11 조회 5,538
06-07-11 조회 4,196
06-07-11 조회 2,729
06-07-11 조회 4,388
06-07-11 조회 3,511
06-07-11 조회 3,745
06-07-11 조회 2,889
06-07-11 조회 2,787
06-07-11 조회 3,478
06-06-27 조회 4,546
06-06-21 조회 4,224
06-06-15 조회 3,901
06-06-10 조회 3,338
06-06-05 조회 3,136
06-05-31 조회 4,217