![]() |
Navigasi Keren di Blog |
Cara membuatnya :
- Login blogger
- Rancangan, Edit Html, Cari kode ]]></b:skin>
- Dan Simpan kode berikut diatasnya :
.headerfixed
{
width:600px;
height:56px;
position:absolute;
top:50%;
left:10px;
background:#fff url(title.png) no-repeat top left;
}
ul#navixed {
position: fixed;
margin: 0px;
padding: 0px;
top: 0px;
right: 10px;
list-style: none;
z-index:999999;
width:721px;
}
ul#navixed li {
width: 103px;
display:inline;
float:left;
}
ul#navixed li a {
display: block;
float:left;
margin-top: -2px;
width: 100px;
height: 25px;
background-color:#000;
background-repeat:no-repeat;
background-position:50% 10px;
border:1px solid #BDDCEF;
-moz-border-radius:0px 0px 10px 10px;
-webkit-border-bottom-right-radius: 10px;
-webkit-border-bottom-left-radius: 10px;
-khtml-border-bottom-right-radius: 10px;
-khtml-border-bottom-left-radius: 10px;
text-decoration:none;
text-align:center;
padding-top:80px;
opacity: 0.7;
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=70);
}
ul#navixed li a:hover{
background-color:#000;
}
ul#navixed li a span{
letter-spacing:2px;
font-size:11px;
color:#FFF;
}
ul#navixed .home a{
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcM1dIWuhzoYfdbKjCeqjDDY1c8_GkU2hWYDXNfJumTW-BTf_JOHbuiP2aUTqDS-C3uftAIaxO1Es1u9KN-WDOBdYu9kTGL-LWkWrDo1GTfV0SX2mqivhDeQbrFxjuTOKLCWaOV9RKC20/s1600/home.png);
}
ul#navixed .about a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKIY-6hQeK3clttwnwz8dQjUfEoPbdUdmGHWILYWKs-QHHKyYj8sXLZAMogRbBOYXMD2cOqGySQtbskTqeWQ2u6WR4bWJfVhJpLUuwKy5f2GDznUlOunbcPIm39L_iIURArv95X00XPn8/s1600/id_card.png);
}
ul#navixed .search a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKXJ9cEnDhGmBiSOsDDQiBrjpU-hdB16CAwQ6_d4-mWOe_YHmq_rkA8zpG6SCbdXFokevEFiMOAh0UT6wKFPrzhtR7diZfibJ-TxUh3xyKmZlPDsm-dl9ZZYUNVu_1XXFg4RK4vW_08LA/s1600/search.png);
}
ul#navixed .podcasts a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCG6METZGq-WmfTl20GlMyTYjz3lb7Gf_Xes3N4aVJw3K8miY0l4H5oPwlNthJ7bagUU8K9ZNpbKzSuD8i-6cgYzp3T9OObZ3NKbsf0FtZ9wbXjB5Ps50ag32BKLRlpAu8wC8UG5j0GfY/s1600/ipod.png);
}
ul#navixed .rssfeed a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMt61a4MO7DjUMDQAzYY28RHmQb0iJ4eGawKc5aV4-1T21wcDJbGE0lycl-F6_pNu2e-EuwLnOLAUKvPP720q1nwseTH7OOR5FeYPRS5aSe1FmdhdukT9DF9bPGXqByfGU4n-thzOjYJk/s1600/rss.png);
}
ul#navixed .photos a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZxlKJUkXwWGfjb-AbANULvJz-NuERGK5Ej2dg6bhp5KVGTfBeuVd6AbM6E2vCwLidjMumnsADAI-MY3yAbUS2wLkEd3MHNUG-NqeA_hqJCy5iMbgA6cXm3RxGBTDg8ITBpioP8ADiDFM/s1600/camera.png);
}
ul#navixed .contact a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBWFIZW9ijbv4pIUC7uGDr1YwA4wWEbnkerZ_JWJa4XEK3iaTZgXF6SDkU3fKWP6_FTknIOVfY_aeQitOl45JvLeLeYrONuALqYfFDyevrVxPGoxXnMMA-BKLgMWNvfXQGbW1juoZIhuw/s1600/mail.png);
{
width:600px;
height:56px;
position:absolute;
top:50%;
left:10px;
background:#fff url(title.png) no-repeat top left;
}
ul#navixed {
position: fixed;
margin: 0px;
padding: 0px;
top: 0px;
right: 10px;
list-style: none;
z-index:999999;
width:721px;
}
ul#navixed li {
width: 103px;
display:inline;
float:left;
}
ul#navixed li a {
display: block;
float:left;
margin-top: -2px;
width: 100px;
height: 25px;
background-color:#000;
background-repeat:no-repeat;
background-position:50% 10px;
border:1px solid #BDDCEF;
-moz-border-radius:0px 0px 10px 10px;
-webkit-border-bottom-right-radius: 10px;
-webkit-border-bottom-left-radius: 10px;
-khtml-border-bottom-right-radius: 10px;
-khtml-border-bottom-left-radius: 10px;
text-decoration:none;
text-align:center;
padding-top:80px;
opacity: 0.7;
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=70);
}
ul#navixed li a:hover{
background-color:#000;
}
ul#navixed li a span{
letter-spacing:2px;
font-size:11px;
color:#FFF;
}
ul#navixed .home a{
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcM1dIWuhzoYfdbKjCeqjDDY1c8_GkU2hWYDXNfJumTW-BTf_JOHbuiP2aUTqDS-C3uftAIaxO1Es1u9KN-WDOBdYu9kTGL-LWkWrDo1GTfV0SX2mqivhDeQbrFxjuTOKLCWaOV9RKC20/s1600/home.png);
}
ul#navixed .about a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKIY-6hQeK3clttwnwz8dQjUfEoPbdUdmGHWILYWKs-QHHKyYj8sXLZAMogRbBOYXMD2cOqGySQtbskTqeWQ2u6WR4bWJfVhJpLUuwKy5f2GDznUlOunbcPIm39L_iIURArv95X00XPn8/s1600/id_card.png);
}
ul#navixed .search a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKXJ9cEnDhGmBiSOsDDQiBrjpU-hdB16CAwQ6_d4-mWOe_YHmq_rkA8zpG6SCbdXFokevEFiMOAh0UT6wKFPrzhtR7diZfibJ-TxUh3xyKmZlPDsm-dl9ZZYUNVu_1XXFg4RK4vW_08LA/s1600/search.png);
}
ul#navixed .podcasts a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCG6METZGq-WmfTl20GlMyTYjz3lb7Gf_Xes3N4aVJw3K8miY0l4H5oPwlNthJ7bagUU8K9ZNpbKzSuD8i-6cgYzp3T9OObZ3NKbsf0FtZ9wbXjB5Ps50ag32BKLRlpAu8wC8UG5j0GfY/s1600/ipod.png);
}
ul#navixed .rssfeed a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMt61a4MO7DjUMDQAzYY28RHmQb0iJ4eGawKc5aV4-1T21wcDJbGE0lycl-F6_pNu2e-EuwLnOLAUKvPP720q1nwseTH7OOR5FeYPRS5aSe1FmdhdukT9DF9bPGXqByfGU4n-thzOjYJk/s1600/rss.png);
}
ul#navixed .photos a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZxlKJUkXwWGfjb-AbANULvJz-NuERGK5Ej2dg6bhp5KVGTfBeuVd6AbM6E2vCwLidjMumnsADAI-MY3yAbUS2wLkEd3MHNUG-NqeA_hqJCy5iMbgA6cXm3RxGBTDg8ITBpioP8ADiDFM/s1600/camera.png);
}
ul#navixed .contact a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBWFIZW9ijbv4pIUC7uGDr1YwA4wWEbnkerZ_JWJa4XEK3iaTZgXF6SDkU3fKWP6_FTknIOVfY_aeQitOl45JvLeLeYrONuALqYfFDyevrVxPGoxXnMMA-BKLgMWNvfXQGbW1juoZIhuw/s1600/mail.png);
dan simpan script ini di atas kode </head> :
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'/>
<script src='http://kangdadang.googlecode.com/files/jcolor.js'/>
<script type='text/javascript'>
$(function() {
var d=300;
$('#navixed a').each(function(){
$(this).stop().animate({
'marginTop':'-80px'
},d+=150);
}); $('#navixed > li').hover(
function () {
$('a',$(this)).stop().animate({
'marginTop':'-2px'
},200);
},
function () {
$('a',$(this)).stop().animate({
'marginTop':'-80px'
},200);
}
);
});
</script>
<script src='http://kangdadang.googlecode.com/files/jcolor.js'/>
<script type='text/javascript'>
$(function() {
var d=300;
$('#navixed a').each(function(){
$(this).stop().animate({
'marginTop':'-80px'
},d+=150);
}); $('#navixed > li').hover(
function () {
$('a',$(this)).stop().animate({
'marginTop':'-2px'
},200);
},
function () {
$('a',$(this)).stop().animate({
'marginTop':'-80px'
},200);
}
);
});
</script>
terakhir simpan cara pemanggilannya di atas kode <body>:
<ul id='navixed'>
<li class='home'><a href='#'><span>Home</span></a></li>
<li class='about'><a href='#'><span>About</span></a></li>
<li class='search'><a href='#'><span>Search</span></a></li>
<li class='photos'><a href='#'><span>Photos</span></a></li>
<li class='rssfeed'><a href='#'><span>Rss Feed</span></a></li>
<li class='podcasts'><a href='#'><span>Podcasts</span></a></li>
<li class='contact'><a href='#'><span>Contact</span></a></li>
</ul>
<li class='home'><a href='#'><span>Home</span></a></li>
<li class='about'><a href='#'><span>About</span></a></li>
<li class='search'><a href='#'><span>Search</span></a></li>
<li class='photos'><a href='#'><span>Photos</span></a></li>
<li class='rssfeed'><a href='#'><span>Rss Feed</span></a></li>
<li class='podcasts'><a href='#'><span>Podcasts</span></a></li>
<li class='contact'><a href='#'><span>Contact</span></a></li>
</ul>
selesai. Jangan lupa simpan template.
0 comments:
Post a Comment