엠

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

· 2006-08-22 (화) 10:20:00 · 2867
<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-09-11 조회 3,264
06-09-10 조회 3,091
06-09-05 조회 5,423
06-09-02 조회 3,896
06-09-01 조회 3,247
06-09-01 조회 3,568
06-08-27 조회 3,349
06-08-27 조회 3,098
06-08-27 조회 2,874
06-08-27 조회 2,624
06-08-27 조회 2,534
06-08-25 조회 4,057
06-08-25 조회 2,594
06-08-23 조회 4,871
06-08-20 조회 3,615
06-08-19 조회 3,448
06-08-18 조회 2,875
06-08-18 조회 2,985
06-08-11 조회 4,145
06-08-10 조회 2,824
06-08-06 조회 4,492
06-08-05 조회 3,276
06-08-05 조회 2,768
06-07-31 조회 3,412
06-07-30 조회 2,954
06-07-29 조회 3,389
06-07-26 조회 2,899
06-07-26 조회 3,295
06-07-25 조회 3,765
06-07-20 조회 3,435
06-07-20 조회 3,716
06-07-19 조회 3,871
06-07-19 조회 2,942
06-07-19 조회 4,782
06-07-14 조회 3,725
06-07-13 조회 4,012
06-07-11 조회 3,076
06-07-11 조회 2,818
06-07-11 조회 4,769
06-07-11 조회 2,586
06-07-11 조회 2,952
06-06-24 조회 4,003
06-06-24 조회 3,466
06-06-13 조회 4,398
06-06-13 조회 3,307
06-06-11 조회 3,218
06-06-08 조회 3,259
06-06-08 조회 3,406
06-06-08 조회 3,830
06-06-07 조회 3,711
06-06-05 조회 3,923
06-06-02 조회 3,490
06-06-01 조회 4,158
06-05-28 조회 3,816
06-05-26 조회 4,372
06-05-22 조회 3,208
06-05-15 조회 3,683
06-05-14 조회 7,037
06-05-11 조회 3,580
06-05-11 조회 4,168
06-05-11 조회 3,631
06-05-11 조회 2,540
06-05-11 조회 2,813
06-05-11 조회 2,459
06-05-10 조회 3,951
06-05-09 조회 4,813
06-05-07 조회 2,619
06-05-07 조회 2,846
06-05-07 조회 2,557
06-05-06 조회 3,733
06-04-28 조회 3,399
06-04-25 조회 3,783
06-04-25 조회 3,519
06-04-22 조회 3,536
06-04-18 조회 4,535
06-04-14 조회 5,192
06-03-27 조회 3,836
06-03-06 조회 3,841
06-03-05 조회 5,152
06-02-24 조회 3,782
06-02-23 조회 4,196
06-02-22 조회 4,026
06-02-22 조회 3,329
06-01-15 조회 3,671
06-01-10 조회 3,630
06-01-05 조회 4,834
05-12-30 조회 5,556
05-12-23 조회 3,683
05-12-01 조회 3,403
05-09-29 조회 4,516
05-09-27 조회 4,899
05-09-22 조회 6,129
05-09-15 조회 3,054
05-09-08 조회 3,937
05-09-05 조회 5,649
05-09-01 조회 4,720
05-09-01 조회 5,850
05-08-21 조회 3,291
05-08-18 조회 3,646
05-08-17 조회 3,750