네이버 콤보스타일 메뉴입니다.~
<html>
<head>
<title>http://www.naver.com</title>
<style>
#bannerbox .oherpromotion {display:inline; position:relative; float:left; margin:3px 11px 0 0 ; }
#bannerbox .oherpromotion h3 {float:left; width:188px; height:20px; background:url(http://imgshopping2.naver.com/2007/new/main/bg_oftenview.gif) no-repeat left top; color:#666; font-weight:normal; font-size:12px; text-align:left; letter-spacing:-1px}
#bannerbox .oherpromotion h3 a {display:block; width:184px; height:16px; padding:4px 0 0 7px; color:#666; text-decoration:none;}
#bannerbox .oherpromotionlist {position:absolute; left:0px; top:18px; width:188px; background:url(http://imgshopping2.naver.com/2007/new/main/bg_ranking_list_mid.gif) repeat-y left top; z-index:100;}
#bannerbox .oherpromotioninner {background:url(http://imgshopping2.naver.com/2007/new/main/bg_ranking_list_bottom.gif) no-repeat left bottom;}
#bannerbox .oherpromotionlist ul {width:158px; margin:0 8px; padding:3px 0; overflow:hidden;}
#bannerbox .oherpromotionlist li {width:100%; padding:6px 0 4px 0; background:url(http://imgshopping2.naver.com/2007/new/rankingshop/dot_gray01.gif) repeat-x left top; font-size:12px; vertical-align:top; line-height:1em; letter-spacing:-1px; text-align:left;}
#bannerbox .oherpromotionlist li a {padding-left:15px; background:url(http://imgshopping2.naver.com/2007/new/rankingshop/bu_arrow02.gif) no-repeat 3px top; color:#7f7f7f;}
#bannerbox .oherpromotionlist li a:hover {color:#64a32f;}
</style>
<script>
function toggleView(target){
var sTarget = target.href.split("#");
var aTarget = document.getElementById(sTarget[sTarget.length-1]);
if(aTarget.style.display == "none") aTarget.style.display = "block";
else aTarget.style.display = "none";
}
</script>
</head>
<body>
<div id="bannerbox">
<div class="oherpromotion">
<h3><a href="#oherpromotionview" onClick="toggleView(this); return false;" onfocus=this.blur()>네이버 콤보스타일 메뉴</a></h3>
<div id="oherpromotionview" class="oherpromotionlist" style="display:none;">
<div class="oherpromotioninner">
<ul>
<li><A HREF="http://www.naver.com">네이버 1</A>
<li><A HREF="http://www.naver.com">네이버 2</A>
<li><A HREF="http://www.naver.com">네이버 3</A>
</ul>
</div>
</div>
</div>
</div>
</body>
</html>
자료출저 : www.naver.com
======================
스타일의 이미지가 링크방식이라..붙이셔 바로 사용하실 수 있으실겁니다.
<head>
<title>http://www.naver.com</title>
<style>
#bannerbox .oherpromotion {display:inline; position:relative; float:left; margin:3px 11px 0 0 ; }
#bannerbox .oherpromotion h3 {float:left; width:188px; height:20px; background:url(http://imgshopping2.naver.com/2007/new/main/bg_oftenview.gif) no-repeat left top; color:#666; font-weight:normal; font-size:12px; text-align:left; letter-spacing:-1px}
#bannerbox .oherpromotion h3 a {display:block; width:184px; height:16px; padding:4px 0 0 7px; color:#666; text-decoration:none;}
#bannerbox .oherpromotionlist {position:absolute; left:0px; top:18px; width:188px; background:url(http://imgshopping2.naver.com/2007/new/main/bg_ranking_list_mid.gif) repeat-y left top; z-index:100;}
#bannerbox .oherpromotioninner {background:url(http://imgshopping2.naver.com/2007/new/main/bg_ranking_list_bottom.gif) no-repeat left bottom;}
#bannerbox .oherpromotionlist ul {width:158px; margin:0 8px; padding:3px 0; overflow:hidden;}
#bannerbox .oherpromotionlist li {width:100%; padding:6px 0 4px 0; background:url(http://imgshopping2.naver.com/2007/new/rankingshop/dot_gray01.gif) repeat-x left top; font-size:12px; vertical-align:top; line-height:1em; letter-spacing:-1px; text-align:left;}
#bannerbox .oherpromotionlist li a {padding-left:15px; background:url(http://imgshopping2.naver.com/2007/new/rankingshop/bu_arrow02.gif) no-repeat 3px top; color:#7f7f7f;}
#bannerbox .oherpromotionlist li a:hover {color:#64a32f;}
</style>
<script>
function toggleView(target){
var sTarget = target.href.split("#");
var aTarget = document.getElementById(sTarget[sTarget.length-1]);
if(aTarget.style.display == "none") aTarget.style.display = "block";
else aTarget.style.display = "none";
}
</script>
</head>
<body>
<div id="bannerbox">
<div class="oherpromotion">
<h3><a href="#oherpromotionview" onClick="toggleView(this); return false;" onfocus=this.blur()>네이버 콤보스타일 메뉴</a></h3>
<div id="oherpromotionview" class="oherpromotionlist" style="display:none;">
<div class="oherpromotioninner">
<ul>
<li><A HREF="http://www.naver.com">네이버 1</A>
<li><A HREF="http://www.naver.com">네이버 2</A>
<li><A HREF="http://www.naver.com">네이버 3</A>
</ul>
</div>
</div>
</div>
</div>
</body>
</html>
자료출저 : www.naver.com
======================
스타일의 이미지가 링크방식이라..붙이셔 바로 사용하실 수 있으실겁니다.
[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]
|
댓글을 작성하시려면 로그인이 필요합니다.
프로그램
태그 필터 (최대 3개)
전체
개발자
소스
기타
mysql
팁자료실
javascript
php
linux
flash
정규표현식
jquery
node.js
mobile
웹서버
os
프로그램
강좌
썸네일
이미지관련
도로명주소
그누보드5
기획자
견적서
계약서
기획서
마케팅
제안서
seo
통계
서식
통계자료
퍼블리셔
html
css
반응형
웹접근성
퍼블리싱
표준화
반응형웹
홈페이지기초
부트스트랩
angularjs
포럼
스크린리더
센스리더
개발자톡
개발자팁
퍼블리셔톡
퍼블리셔팁
기획자톡
기획자팁
프로그램강좌
퍼블리싱강좌
댓글 2개