채택완료

제이쿼리 슬라이드 메뉴 질문해도 되나요?

상단메뉴에 슬라이드 메뉴를 넣었는데요..

Copy
<div id="myslidemenu" class="jqueryslidemenu"><ul><li><table width="265" border="0" cellspacing="0" cellpadding="0">  <tbody>    <tr>      <td><!--전체메뉴--><a href="#"><img src="../images/top/menu/menu_01.jpg"/></a></td>    </tr>  </tbody></table> <ul>  <li><!--테이블삽입시작--><table width="990" border="0" cellspacing="0" cellpadding="0" bgcolor="#fff">  <tbody>    <tr>      <td><img src="../images/top/cate_all/cate_all.jpg"></td>    </tr>  </tbody></table><!--테이블삽입 끝--></li></ul><li><table width="149" border="0" cellspacing="0" cellpadding="0">  <tbody>    <tr>      <td><!--메뉴02--><a href="list.php?ca_id=10#"><img src="../images/top/menu/menu_02.jpg" width="149" height="49" alt=""/></a></td>    </tr>  </tbody>  </table><!--에코엔조이 끝--><ul>  <li><!--테이블삽입시작--><div class="2side"><table width="990" border="0" cellspacing="0" cellpadding="0" bgcolor="#fff">  <tbody>    <tr>      <td><img src="../images/top/cate_all/eco.jpg"></td>    </tr>  </tbody></table></div><!--테이블삽입 끝--></li></ul><li><table width="142" border="0" cellspacing="0" cellpadding="0">  <tbody>    <tr>      <td><!--메뉴03--><a href="list.php?ca_id=70"><img src="../images/top/menu/menu_03.jpg" width="142" height="49" alt=""/></a></td>    </tr>  </tbody></table><ul>  <li><!--테이블삽입시작--><div id="sub"><table width="990" border="0" cellspacing="0" cellpadding="0" bgcolor="#fff">  <tbody>    <tr>      <td><img src="../images/top/cate_all/chef.jpg"></td>    </tr>  </tbody></table></div><!--테이블삽입 끝--></li></ul><li><table width="110" border="0" cellspacing="0" cellpadding="0">  <tbody>    <tr>      <td><!-- 메뉴04--><a href="/bbs/board.php?bo_table=event"><img src="../images/top/menu/menu_04.jpg" width="110" height="49" alt=""/></a></td>    </tr>  </tbody></table><ul>  <li><!--테이블삽입시작--><div id="sub"><table width="990" border="0" cellspacing="0" cellpadding="0" bgcolor="#fff">  <tbody>    <tr>      <td><img src="../images/top/cate_all/chef.jpg"></td>    </tr>  </tbody></table></div><!--테이블삽입 끝--></li></ul><li><table width="125" border="0" cellspacing="0" cellpadding="0">  <tbody>    <tr>      <td><!--메뉴05--><a href="#"><img src="../images/top/menu/menu_05.jpg" width="125" height="49" alt=""/></a></td>    </tr>  </tbody></table><!--테이블삽입시작--><ul>  <li><div id="sub"><table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#fff">  <tbody>    <tr>      <td><img src="../images/top/cate_all/chef.jpg"></td>    </tr>  </tbody></table></div></li></ul><!--테이블삽입 끝-->  </li><li><table width="199" border="0" cellspacing="0" cellpadding="0">  <tbody>    <tr>      <td><table width="199" border="0" cellspacing="0" cellpadding="0">  <tbody>    <tr>      <td><!-- 메뉴 06--><a href="#"><img src="../images/top/menu/menu_06.jpg" width="199" height="49" alt=""/></a></td>    </tr>  </tbody></table></td>    </tr>  </tbody></table><ul>  <li><!--테이블삽입시작--><div id="sub"><table width="990" border="0" cellspacing="0" cellpadding="0" bgcolor="#fff">  <tbody>    <tr>      <td><img src="../images/top/cate_all/chef.jpg"></td>    </tr>  </tbody></table></div><!--테이블삽입 끝--></li></ul>  </li></li></ul><br style="clear: left" /></div>

제가 답을얻고 싶은부분은 어떤 메뉴든 마우스 올리면 가로전체영역으로 레이어가 나오게 하고 싶습니다.

현재는 해당 메뉴 아래로만 레이어가 나옵니다.

아래는 css입니다.

Copy
.jqueryslidemenu{background: #fff;/*기본메뉴 배경색*/width: 100%;/*기본메뉴 가로사이즈*/}.jqueryslidemenu ul{margin: 0;padding: 0;list-style-type: none;z-index:5001;/*2, 3차메뉴 순서*/}/*Top level list items*/.jqueryslidemenu ul li{position: relative;float: left;}/*Top level menu link items style*/.jqueryslidemenu ul li a{display: block;background: #; /*background of tabs (default state)*/color: #ccc;border-right: px solid #778;color: #FF3135;text-decoration: none;}* html .jqueryslidemenu ul li a{ /*IE6 hack to get sub menu links to behave correctly*/display: inline-block;}.jqueryslidemenu ul li a:link, .jqueryslidemenu ul li a:visited{color: #000;/*기본메뉴 텍스트색상*/font-size:12px}.jqueryslidemenu ul li a:hover{background: #; /*오버시 백그라운드색상*/color: #ccc;/*메뉴롤오버시 텍스트색상*/} /*1st sub level menu*/.jqueryslidemenu ul li ul{position: absolute;left: -800px;display: block;visibility: hidden;}/*Sub level menu list items (undo style from Top level List Items)*/.jqueryslidemenu ul li ul li{display: list-item;float: left;}/*All subsequent sub menu levels vertical offset after 1st level sub menu */.jqueryslidemenu ul li ul li ul{ position: absolute; left: -500px; top: 0; width: 819px;}/* Sub level menu links style */.jqueryslidemenu ul li ul li a{font: bold 12px Dotum, "돋움";/*링크가 있는 텍스트*/position: absolute;left:0px;width:160px; /*2차메뉴 가로사이즈*/height:20px;background:#FFFFFF;}.div 2side{ position:absolute;left:-300px; float:left.jqueryslidemenuz ul li ul li a:hover{ /*메뉴텍스트 오버스타일*/background: #ccc;color: 333;}./* ######### CSS classes applied to down and right arrow images  ######### *//*.downarrowclass{position: absolute;top: 12px;right: 7px;}.rightarrowclass{position: absolute;top: 6px;right: 5px;}*/
 
|

답변 1개 / 댓글 1개

채택된 답변
+20 포인트

질문의 요지를 보았을때 스크립트 부분을 같이 봐야 하는데

css 와 레이아웃만 올리셨네요

답변을 하기에는 너무나 부족한 내용입니다.

답변에 대한 댓글 1개

스크립트도 올려야 하는군요 감사합니다.
[code]/*********************
//* jQuery Multi Level CSS Menu #2- By Dynamic Drive: http://www.dynamicdrive.com/
//* Last update: Nov 7th, 08': Limit # of queued animations to minmize animation stuttering
//* Menu avaiable at DD CSS Library: http://www.dynamicdrive.com/style/
*********************/

//Update: April 12th, 10: Fixed compat issue with jquery 1.4x

//Specify full URL to down and right arrow images (23 is padding-right to add to top level LIs with drop downs):
var arrowimages={down:['downarrowclass', ''], right:['rightarrowclass', '']}

var jqueryslidemenu={

animateduration: {over: 200, out: 100}, //duration of slide in/ out animation, in milliseconds

buildmenu:function(menuid, arrowsvar){
jQuery(document).ready(function($){
var $mainmenu=$("#"+menuid+">ul")
var $headers=$mainmenu.find("ul").parent()
$headers.each(function(i){
var $curobj=$(this)
var $subul=$(this).find('ul:eq(0)')
this._dimensions={w:this.offsetWidth, h:this.offsetHeight, subulw:$subul.outerWidth(), subulh:$subul.outerHeight()}
this.istopheader=$curobj.parents("ul").length==1? true : false
$subul.css({top:this.istopheader? this._dimensions.h+"px" : 0})
$curobj.children("a:eq(0)").css(this.istopheader? {paddingRight: arrowsvar.down[2]} : {}).append(
'<img src="'+ (this.istopheader? arrowsvar.down[1] : arrowsvar.right[1])
+'" class="' + (this.istopheader? arrowsvar.down[0] : arrowsvar.right[0])
+ '" style="border:0;" />'
)
$curobj.hover(
function(e){
var $targetul=$(this).children("ul:eq(0)")
this._offsets={left:$(this).offset().left, top:$(this).offset().top}
var menuleft=this.istopheader? 0 : this._dimensions.w
menuleft=(this._offsets.left+menuleft+this._dimensions.subulw>$(window).width())? (this.istopheader? -this._dimensions.subulw+this._dimensions.w : -this._dimensions.w) : menuleft
if ($targetul.queue().length<=1) //if 1 or less queued animations
$targetul.css({left:menuleft+"px", width:this._dimensions.subulw+'px'}).slideDown(jqueryslidemenu.animateduration.over)
},
function(e){
var $targetul=$(this).children("ul:eq(0)")
$targetul.slideUp(jqueryslidemenu.animateduration.out)
}
) //end hover
$curobj.click(function(){
$(this).children("ul:eq(0)").hide()
})
}) //end $headers.each()
$mainmenu.find("ul").css({display:'none', visibility:'visible'})
}) //end document.ready
}
}

//build menu with ID="myslidemenu" on page:
jqueryslidemenu.buildmenu("myslidemenu", arrowimages)
[/code]

답변을 작성하려면 로그인이 필요합니다.