How To Add Slide Out Navigation Menu In Blogger
- Go to Blogger Dashboard --> Design --> Edit HTML
- Backup your Template before making any changes to your blog
- Now Expand Widget Templates
- Find the code shown below using [ctrl+F]
]]></b:skin>
- Now Paste the Code shown below just above/before it
ul#navigation {
position: fixed;
margin: 0px;
padding: 0px;
top: 10px;
left: 0px;
list-style: none;
z-index:9999;
}
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(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzvVSk4qCCOPG72dP4nt910AvuRURkYR0CLdlTRwVvemN0RoCnBOVRxF7va835HK4wXqeAgwo_5WJiAQITwvjMGhY3Mn5KUmKoCCtaYdMXhRss3k2GqXPmDbeQSUDBY0YRmaVP13goah8/s1600/home.png);
}
ul#navigation .about a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFgwmFJ7ke07maH3UImA2KIlAbaThuyJsr71Rhzru1RXd8rSjmGpC6pIHBqRVm8GBbndPBSFexcgO4DXhBSVPKzubZB8d9BuNjfN2V9-gUOIi_wDdhBTJq1YhidNRNMfozToRMHGGu8Hs/s1600/idcard.png);
}
ul#navigation .search a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyXoCYrBe53TrMqWs0JiZhvMgkv1FH2mBrbdSWos_BwfJzpsl_g2u7GKwDcTRwlGSfK6fgrNHcBvs-41T2CEB8P9v1TyRon7wfp-OPHrKgFFcXsCDxn6Ad-6bx_r6s0FO2796k2A6RLj4/s1600/search.png);
}
ul#navigation .podcasts a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGFcsPKnvTfs2IhsNLHvbxZjbWK3r5TADTzBBMiZmcxsgfurXVC4v3zGLRadqPpANMdLz3tSgNLFJw1z426qbNERbHjKTojJTBOfTdoNhTfvj1LiL-3A3ILt4BwnAAXL4kTxSsZBp69wI/s1600/ipod.png);
}
ul#navigation .rssfeed a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyJTQSdT5IGzL055D_7UpHWulOAiqwkXFP5IaYrkAfSfR4b6XU8cfj8sEi_z-o8XfKl4x5J2eCNnmV5Os3TEL0PkpfnndFVUg62abqAu_flxX3_J6PNHPES0f_219yOhvnKHwu2dWJ0ZQ/s1600/rss.png);
}
ul#navigation .photos a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2kbIlMsm6gF0lLLhM-jR1BnQkvmQJz84PowGoVL8AMloxZvXrBCWJdzs7S-TXjG0Mrd7jPMD4yTuole0t2XIXS52IY6vjZhwbrYhLHg5D5ysaAkSiN9z_WVM6Vn90v2i90Al2vLBnkRo/s1600/camera.png);
}
ul#navigation .contact a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIbU1uDWHWoeXoBDON4wEkdC_vdjXolNC8jB-vxiIJYdEB0_G59ceGx2jyKBTZOrayqYx1c4U8zptD3MzLsxh0nhXcLtbPu2WYCg1meTYMLFU23x2BmUobXrQZ98mwxKwCSWVzFuyD64M/s1600/mail.png);
}
position: fixed;
margin: 0px;
padding: 0px;
top: 10px;
left: 0px;
list-style: none;
z-index:9999;
}
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(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzvVSk4qCCOPG72dP4nt910AvuRURkYR0CLdlTRwVvemN0RoCnBOVRxF7va835HK4wXqeAgwo_5WJiAQITwvjMGhY3Mn5KUmKoCCtaYdMXhRss3k2GqXPmDbeQSUDBY0YRmaVP13goah8/s1600/home.png);
}
ul#navigation .about a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFgwmFJ7ke07maH3UImA2KIlAbaThuyJsr71Rhzru1RXd8rSjmGpC6pIHBqRVm8GBbndPBSFexcgO4DXhBSVPKzubZB8d9BuNjfN2V9-gUOIi_wDdhBTJq1YhidNRNMfozToRMHGGu8Hs/s1600/idcard.png);
}
ul#navigation .search a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyXoCYrBe53TrMqWs0JiZhvMgkv1FH2mBrbdSWos_BwfJzpsl_g2u7GKwDcTRwlGSfK6fgrNHcBvs-41T2CEB8P9v1TyRon7wfp-OPHrKgFFcXsCDxn6Ad-6bx_r6s0FO2796k2A6RLj4/s1600/search.png);
}
ul#navigation .podcasts a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGFcsPKnvTfs2IhsNLHvbxZjbWK3r5TADTzBBMiZmcxsgfurXVC4v3zGLRadqPpANMdLz3tSgNLFJw1z426qbNERbHjKTojJTBOfTdoNhTfvj1LiL-3A3ILt4BwnAAXL4kTxSsZBp69wI/s1600/ipod.png);
}
ul#navigation .rssfeed a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyJTQSdT5IGzL055D_7UpHWulOAiqwkXFP5IaYrkAfSfR4b6XU8cfj8sEi_z-o8XfKl4x5J2eCNnmV5Os3TEL0PkpfnndFVUg62abqAu_flxX3_J6PNHPES0f_219yOhvnKHwu2dWJ0ZQ/s1600/rss.png);
}
ul#navigation .photos a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2kbIlMsm6gF0lLLhM-jR1BnQkvmQJz84PowGoVL8AMloxZvXrBCWJdzs7S-TXjG0Mrd7jPMD4yTuole0t2XIXS52IY6vjZhwbrYhLHg5D5ysaAkSiN9z_WVM6Vn90v2i90Al2vLBnkRo/s1600/camera.png);
}
ul#navigation .contact a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIbU1uDWHWoeXoBDON4wEkdC_vdjXolNC8jB-vxiIJYdEB0_G59ceGx2jyKBTZOrayqYx1c4U8zptD3MzLsxh0nhXcLtbPu2WYCg1meTYMLFU23x2BmUobXrQZ98mwxKwCSWVzFuyD64M/s1600/mail.png);
}
- Now Find the code shown below using [ctrl+F]
</head>
<body>
<body>
- Now Replace it with the code shown below
<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>
</head>
<body>
<p style="display:none;"> Navigation Menu by<a href="http://www.latesthack.com">Latest Hack</a></p>
<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>
$(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>
</head>
<body>
<p style="display:none;"> Navigation Menu by<a href="http://www.latesthack.com">Latest Hack</a></p>
<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>
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home