[제나플러스] 가로 메뉴가 마우스오버/클릭시 하위메뉴가 세로로 표시됩니다. > 팁앤테크

본문 바로가기
사이트 내 전체검색

팁앤테크

[제나플러스] 가로 메뉴가 마우스오버/클릭시 하위메뉴가 세로로 표시됩니다.

페이지 정보

본문

<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<style type="text/css">

#dropmenudiv{
position:absolute;
border:1px solid black;
font:normal 12px Verdana;
line-height:18px;
z-index:100;
}

</style>


<script type="text/javascript">

/***********************************************
* AnyLink Drop Down Menu- ?Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="http://tagin.net">태그인넷</a><br>'
menu1[1]='<a href="http://tagin.net/js/">자바스크립트</a><br>'
menu1[2]='<a href="http://tagin.net/media/">동영상 편집 강좌</a><br>'
menu1[3]='<a href="http://tagin.net/server">계정db관리</a><br>'

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="http://cnn.com">CNN</a><br>'
menu2[1]='<a href="http://msnbc.com">MSNBC</a><br>'
menu2[2]='<a href="http://news.bbc.co.uk">BBC News</a><br>'
                
var menuwidth='165px' //default menu width
var menubgcolor='lightyellow'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

</script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '150px')" onMouseout="delayhidemenu()">태그인넷(마우스오버)</a> |

<a href="default2.htm" onClick="return dropdownmenu(this, event, menu2, '200px')" onMouseout="delayhidemenu()">태그인넷2</a> (클릭)
</body>

</html>
추천0

댓글목록

profile_image

pahs님의 댓글

pahs쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

활용도 졸습니다..^^

Total 770건 18 페이지
  • RSS
팁앤테크 목록
번호 제목 글쓴이 조회 추천 날짜
345 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 38655 0 10-04
344 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 16400 0 10-16
343 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 19605 0 11-20
342 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 17578 0 04-10
341 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13066 0 12-09
340 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12418 0 02-25
339 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14021 0 08-25
338 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 9834 0 03-30
337 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14968 0 11-28
336 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 28455 0 06-15
335 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 4793 0 06-20
334 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 5971 0 02-28
333 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 3059 0 08-03
332 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 16298 0 06-19
331 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 20013 0 11-01
330 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 22848 0 10-10
329 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15734 0 02-26
328 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14772 0 03-06
327 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 16371 0 06-11
326 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 27797 0 12-28
325 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 22536 0 08-25
324 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14653 0 12-31
323 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 18224 0 09-21
322 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14598 0 12-09
321 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 16108 0 04-16

검색

회원로그인

회원가입

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒140-0011 東京都品川区東大井2-5-9-203
050-5539-7787
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

접속자집계

오늘
5,008
어제
8,371
최대
8,371
전체
1,630,564
Copyright (c) 株式会社YHPLUS. All rights reserved.