• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Share Thanh menu trượt bên trái màn hình rất pro

shirauno

New Member
Demo: http://tympanus.net/Tutorials/FixedNavigationTutorial/



Cách làm :

Cho code sau vào Footer:

PHP:
<script type="text/javascript" src="http://www.marcofbb.com.ar/wp-content/uploads/2010/11/jquery-1.3.2.js"></script>
        <script type="text/javascript"> 
            $(function() {
                $('#navigation a').stop().animate({'marginLeft':'-85px'},1000);
 
                $('#navigation > li').hover(
                    function () {
                        $('a',$(this)).stop().animate({'marginLeft':'-2px'},200);
                    },
                    function () {
                        $('a',$(this)).stop().animate({'marginLeft':'-85px'},200);
                    }
                );
            });
        </script> 
        <ul id="navigation"> 
            <li class="home"><a href="" title="Home"></a></li> 
            <li class="about"><a href="" title="About"></a></li> 
            <li class="search"><a href="" title="Search"></a></li> 
            <li class="photos"><a href="" title="Photos"></a></li> 
            <li class="rssfeed"><a href="" title="Rss Feed"></a></li> 
            <li class="podcasts"><a href="" title="Podcasts"></a></li> 
            <li class="contact"><a href="" title="Contact"></a></li> 
        </ul>

Tiếp theo cho code sau vào additional.css :

PHP:
ul#navigation {
position: fixed;
margin: 0px;
padding: 0px;
top: 10px;
left: 0px;
list-style: none;
z-index: 999;
}
ul#navigation li {
width: 100px;
}
ul#navigation li a {
display: block;
margin-left: -2px;
width: 100px;
height: 70px;
background-color:#CFCFCF;
background-repeat:no-repeat;
background-position:center center;
border:1px solid #AFAFAF;
-moz-border-radius:0px 10px 10px 0px;
-webkit-border-bottom-right-radius: 10px;
-webkit-border-top-right-radius: 10px;
-khtml-border-bottom-right-radius: 10px;
-khtml-border-top-right-radius: 10px;
/*-moz-box-shadow: 0px 4px 3px #000;
-webkit-box-shadow: 0px 4px 3px #000;
*/
opacity: 0.6;
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=60);
}
ul#navigation .home a{
    background-image: url(http://tympanus.net/Tutorials/FixedNavigationTutorial/images/home.png);
}
ul#navigation .about a      {
    background-image: url(http://tympanus.net/Tutorials/FixedNavigationTutorial/images/id_card.png);
}
ul#navigation .search a      {
    background-image: url(http://tympanus.net/Tutorials/FixedNavigationTutorial/images/search.png);
}
ul#navigation .podcasts a      {
    background-image: url(http://tympanus.net/Tutorials/FixedNavigationTutorial/images/ipod.png);
}
ul#navigation .rssfeed a   {
    background-image: url(http://tympanus.net/Tutorials/FixedNavigationTutorial/images/rss.png);
}
ul#navigation .photos a     {
    background-image: url(http://tympanus.net/Tutorials/FixedNavigationTutorial/images/camera.png);
}
ul#navigation .contact a    {
    background-image: url(http://tympanus.net/Tutorials/FixedNavigationTutorial/images/mail.png);
}

Ảnh các bạn có thể save về site rồi tự thay mình hoặc dữ nguyên cũng được

Cuối cùng cho cái thanks!

Nguồn skinvbb.net
 

Facebook Comments

Similar threads

New posts New threads New resources

Back
Top