14-05-2012, 20:03
Witam mecze sie juz pol godziny i nie potrafi zmienic orientacji tego menu na pionowe (jest za duze na strone)
prosze o jakiekolwiek wytyczne.
http://tympanus.net/codrops/2010/07/16/slide-down-box-menu/
kod html
plik css
pliki sa do pobrania rowniez na stronie
rozumiem ze w css nie musze grzebac
tylko skrypt i html ale co dokladnie ?
jak narazie jestem na etapie pomniejszania i w pewnym momencie nie mam POJECIA co zrobilem a menu przestalo sie animowac i wszystko od nowa ...
glownie jednak chodzi mi o "pionizacje" , z pomniejszaniem sobie poradze
dziekuje z gory [/quote]
prosze o jakiekolwiek wytyczne.
http://tympanus.net/codrops/2010/07/16/slide-down-box-menu/
kod html
Kod:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Covebo 24 pflege </title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="description" content="Slide Down Box Menu with jQuery and CSS3" />
<meta name="keywords" content="jquery, css3, sliding, box, menu, cube, navigation, portfolio, thumbnails"/>
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen"/>
<style>
body{
background:#333 url(bg.jpg) repeat top left;
font-family:Arial;
}
span.reference{
position:fixed;
left:10px;
bottom:10px;
font-size:12px;
}
span.reference a{
color:#aaa;
text-transform:uppercase;
text-decoration:none;
text-shadow:1px 1px 1px #000;
margin-right:30px;
}
span.reference a:hover{
color:#ddd;
}
ul.sdt_menu{
margin-top:1; /* polozenie menu */
}
h1.title{
text-indent:-9000px;
background:transparent url(title.png) no-repeat top right;
width:630px;
height:150px;
}
</style>
</head>
<body>
<div class="content">
<h1 class="title">Slide Down Box Menu with jQuery and CSS3</h1>
<ul id="sdt_menu" class="sdt_menu">
<li>
<a href="#">
<img src="images/24_senioren.jpg" alt=""/>
<span class="sdt_active"></span>
<span class="sdt_wrap">
<span class="sdt_link">24h Pflege</span>
<span class="sdt_descr">Für Senioren</span>
</span>
</a>
<div class="sdt_box">
<a href="#">Kosten tabele</a>
</div>
</li>
<li>
<a href="#">
<img src="images/24_behinderten.jpg" alt=""/>
<span class="sdt_active"></span>
<span class="sdt_wrap">
<span class="sdt_link">24h Pflege</span>
<span class="sdt_descr">Für Behinderten</span>
</span>
</a>
<div class="sdt_box">
<a href="#">Kosten tabele</a>
</div>
</li>
<li>
<a href="#">
<img src="images/housekeeping.jpg" alt=""/>
<span class="sdt_active"></span>
<span class="sdt_wrap">
<span class="sdt_link">Housekeeping</span>
<span class="sdt_descr">Mehr Zeit für Sie</span>
</span>
</a>
<div class="sdt_box">
<a href="#">Kosten tabele</a>
</div>
</li>
<li>
<a href="#">
<img src="images/wahl.jpg" alt=""/>
<span class="sdt_active"></span>
<span class="sdt_wrap">
<span class="sdt_link">Die Wahl</span>
<span class="sdt_link">Des Betreues</span>
</span>
</a>
</li>
<li>
<a href="#">
<img src="images/uber_uns.gif" alt=""/>
<span class="sdt_active"></span>
<span class="sdt_wrap">
<span class="sdt_link">über Uns</span>
</span>
</a>
</li>
<li>
<a href="#">
<img src="images/kontakt.jpg" alt=""/>
<span class="sdt_active"></span>
<span class="sdt_wrap">
<span class="sdt_link">Kontakt</span>
</span>
</a>
</li>
</ul>
</div>
<!-- The JavaScript -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.easing.1.3.js"></script>
<script type="text/javascript">
$(function() {
/**
* for each menu element, on mouseenter,
* we enlarge the image, and show both sdt_active span and
* sdt_wrap span. If the element has a sub menu (sdt_box),
* then we slide it - if the element is the last one in the menu
* we slide it to the left, otherwise to the right
*/
$('#sdt_menu > li').bind('mouseenter',function(){
var $elem = $(this);
$elem.find('img')
.stop(true)
.animate({
'width':'170px',
'height':'170px',
'left':'0px'
},400,'easeOutBack')
.andSelf()
.find('.sdt_wrap')
.stop(true)
.animate({'top':'140px'},500,'easeOutBack')
.andSelf()
.find('.sdt_active')
.stop(true)
.animate({'height':'170px'},300,function(){
var $sub_menu = $elem.find('.sdt_box');
if($sub_menu.length){
var left = '170px';
if($elem.parent().children().length == $elem.index()+1)
left = '-170px';
$sub_menu.show().animate({'left':left},200);
}
});
}).bind('mouseleave',function(){
var $elem = $(this);
var $sub_menu = $elem.find('.sdt_box');
if($sub_menu.length)
$sub_menu.hide().css('left','0px');
$elem.find('.sdt_active')
.stop(true)
.animate({'height':'0px'},300)
.andSelf().find('img')
.stop(true)
.animate({
'width':'0px',
'height':'0px',
'left':'85px'},400)
.andSelf()
.find('.sdt_wrap')
.stop(true)
.animate({'top':'25px'},500);
});
});
</script>
</body>
</html>
plik css
Kod:
ul.sdt_menu{
margin:0;
padding:0;
list-style: none;
font-family:"Myriad Pro", "Trebuchet MS", sans-serif;
font-size:14px;
width:1020px;
}
ul.sdt_menu a{
text-decoration:none;
outline:none;
}
ul.sdt_menu li{
float:left;
width:170px;
height:85px;
position:relative;
cursor:pointer;
}
ul.sdt_menu li > a{
position:absolute;
top:0px;
left:0px;
width:170px;
height:85px;
z-index:12;
background:transparent url(../images/overlay.png) no-repeat bottom right;
-moz-box-shadow:0px 0px 2px #000 inset;
-webkit-box-shadow:0px 0px 2px #000 inset;
box-shadow:0px 0px 2px #000 inset;
}
ul.sdt_menu li a img{
border:none;
position:absolute;
width:0px;
height:0px;
bottom:0px;
left:85px;
z-index:100;
-moz-box-shadow:0px 0px 4px #000;
-webkit-box-shadow:0px 0px 4px #000;
box-shadow:0px 0px 4px #000;
}
ul.sdt_menu li span.sdt_wrap{
position:absolute;
top:25px;
left:0px;
width:170px;
height:60px;
z-index:15;
}
ul.sdt_menu li span.sdt_active{
position:absolute;
background:#FFF; /* dolne tlo*/
top:85px;
width:170px;
height:0px;
left:0px;
z-index:14;
-moz-box-shadow:0px 0px 4px #000 inset;
-webkit-box-shadow:0px 0px 4px #000 inset;
box-shadow:0px 0px 4px #000 inset;
}
ul.sdt_menu li span span.sdt_link,
ul.sdt_menu li span span.sdt_descr,
ul.sdt_menu li div.sdt_box a{
margin-left:15px;
text-transform:uppercase;
text-shadow:1px 1px 1px #000;
}
ul.sdt_menu li span span.sdt_link{
color:#FF8010;
font-size:22px;
float:left;
clear:both;
}
ul.sdt_menu li span span.sdt_descr{
color:#808080;
float:left;
clear:both;
width:155px; /*For dumbass IE7*/
font-size:14px;
letter-spacing:1px;
}
ul.sdt_menu li div.sdt_box{
display:block;
position:absolute;
width:170px;
overflow:hidden;
height:170px;
top:85px;
left:0px;
display:none;
background:#FFF;
}
ul.sdt_menu li div.sdt_box a{
float:left;
clear:both;
line-height:100px;
color:#FF8010; /* kolor podmenu */
}
ul.sdt_menu li div.sdt_box a:first-child{
margin-top:15px;
}
ul.sdt_menu li div.sdt_box a:hover{
color:#FF8010;
font-weight:bold;
}
pliki sa do pobrania rowniez na stronie
rozumiem ze w css nie musze grzebac
tylko skrypt i html ale co dokladnie ?
jak narazie jestem na etapie pomniejszania i w pewnym momencie nie mam POJECIA co zrobilem a menu przestalo sie animowac i wszystko od nowa ...
glownie jednak chodzi mi o "pionizacje" , z pomniejszaniem sobie poradze
dziekuje z gory [/quote]