Pages

Sabtu, 19 November 2011

Cara membuat navigasi social bookmark melayang (floating social bookmark widget)

Cara membuat navigasi social bookmark melayang (floating social bookmark widget) :
1.       Seperti biasa, login dulu ke dashboard blogger anda.
2.       Pilih Rancangan > Elemen Laman > Add gadget (HTML/JavaScript).
3.       Copy script widget social bookmark dibawah ini, dan paste pada gadget.

<style>
ul#navigation {
position: fixed;
margin: 0px;
padding: 0px;
top: 0px;
right: 0px;
list-style: none;
z-index:999999;
width:721px;
}
ul#navigation li {
width: 103px;
display:inline;
float:left;
border:0;
}
ul#navigation li a {
display: block;
float:left;
margin-top: -2px;
width: 100px;
height: 25px;
background-color:#eeeeee;
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.96;
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=70);
}
ul#navigation li a:hover{
background-color:#CAE3F2;
}
ul#navigation li a span{
letter-spacing:2px;
font-size:11px;
color:#60ACD8;
font-family:trebuchet-ms, arial, tahoma, Sans-Serif;
font-weight:bold;
text-shadow: 0 -1px 1px #fff;
}
ul#navigation .rss a{
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwe-hZyqf7L6bcejLF6HHMvCBqjNwbDtw9YK4MMGnIrxxPCXI5beNMQYG95-oh3aKkn7d9a082OdHDvVora9Xg7-yjA21xKruOEmmx6xT1jOgzI9EKq1MJIa3Fvhyphenhyphen-1Pw8dBz0XARYFVFX/s400/rss_64x64.png);
}
ul#navigation .facebook a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJwghPZtX4nRMNBFgXdt2mcleYVIAixk0h3I_DvI0ijTqgHJI5tdcsj7ZcK81HvAvMIwCCPINgHQDB0G6svPNuIE8BYUaeLCBM5pSGyYTjpQLuKsC_R9elAR3lsV8znqgg1hEkP-XzbdXt/s400/facebook_64x64.png);
}
ul#navigation .twitter a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxSZLBMiT2AfocQOXDeMn7lH2WD5er6FF5Hs2Z1kK23qvPIm3cGbb3lw-mbaTTPVXbNPd9fKAAqJ79j6Mhiela4yJe5y5aSdxr80I3cnHe2DW_uBTWznQXg6_eY1VfgFeijXABA6DRgQjb/s400/twitter_64x64.png);
}
ul#navigation .googlebookmarks a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEig8-RAzpr7watssM2i9NLMtS4A7KtkcK3OR32-UiQhAeGxgzcBS1fZP7QHQff4FQFv4hSewOVclCYWHYXI3XOZGa9SpLVZLcoP19uCjWubvTWs8LlDr4PHLizwehrBqf_Y1fQySi2hvo06/s400/google_64x64.png);
}
ul#navigation .e-mail a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmQGhuYhhDRC8k3ZoyAuazY55bDn7LpLPtVK5kwFMi5D9f8NtJeL0RZ2sbJS269A6iUyyg7R_aV8LkpKjNc7djBX95ZSD1bYOXfWLE9oj5cDhC3dExZm9Nm3Qea-m6L4fvjHIDZPYRUhv4/s400/yahoo_64x64.png);
}
</style>


<script src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.js" type="text/javascript">
</script>
<script type="text/javascript">
$(function() {
var d=300;
$('#navigation a').each(function(){
$(this).stop().animate({
'marginTop':'-80px'
},d+=150);
});


$('#navigation > li').hover(
function () {
$('a',$(this)).stop().animate({
'marginTop':'-2px'
},200);
},
function () {
$('a',$(this)).stop().animate({
'marginTop':'-80px'
},200);
}
);
});
</script>


<ul id="navigation">
<li class="rss"><a href="http://YOUR-BLOG.blogspot.com/atom.xml">RSS Feed</a></li>
<li class="facebook"><a href="FACEBOK-PROFILE">Facebook</a></li>
<li class="twitter"><a href="TWITTER-ACCOUNT">Twitter</a></li>
<li class="googlebookmarks"><a href="https://www.google.com/bookmarks/">Google</a></li>
<li class="e-mail"><a href="<div style="color: red;"YAHOO!-ACCOUNT">Yahoo!</a></li>
</ul>


4.       Silahkan edit link akun social bookmark yang ada pada script, sesuai dengan akun social bookmark yang sobat miliki.
5.       Simpan / Save gadget

0 komentar:

Posting Komentar