Silahkan ikuti step by step berikut :
</div>
</div>
<br />
<div align="right"><a href="javascript:void(0);" onclick="showHideAT()"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEWCQl3s0mjVXrpEgVB0R3l9CUb19ZE6qQcViqSr_ZQ90WXShVPvSRD6WYi34_kQq3_ACmBjFYqJoSnaRthw0RRCyAVuza77Z7ubuRMipdR9n14nK3XYfjV6bXr71udLtlaNpxvp9z0yM/" alt="close" title="Click here to Close Cbox" /></a></div>
<div align="left"><font size="2"><a http://exeloph.blogspot.com/2010/10/showhide-cbox-pada-posisi-atas.html"target=_blank"><div style="color: #444444;">
<span style="font-size: xx-small;">By enda fiVers</span></div></a></font></div>
</div></div></div>
<script type="text/javascript">
var at = document.getElementById("at");
at.style.top = (-200-at.offsetWidth).toString() + "px";
</script></center>
- Login Blogger
- Pilih Perancangan>>Elemen laman
- Tambahkan Gadget HTML/Java script (Jangan diberi judul)
- Copas kode berikut :
<style elbtype="text/css">
#at{
position:fixed;
right:450px;
z-index:+1000;
}
* html #at{position:relative;}
.attab{
height:100px;
width:30px;
float:left;
cursor:pointer;
background:url();
}
.atcontent{
float:left;
border:2px solid #ff0000;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhPb7O1K_tulmIae8gNXeFi406M6-pi9f-zLZkwpkJPnoYsaJ1CA9aJTLBkmemOaBE3rGIxTLZJaSOkBV1mrbkealyB8Np60hmvFIqoqNKnitJyZOSbIR8WSJiSHXIYRCrRHOon6y_hOJr/) #000000 repeat-y center;
-moz-border-radius-topleft:15px;
-moz-border-radius-topright:15px;
-moz-border-radius-bottomleft:15px;
-moz-border-radius-bottomright:15px;
padding:10px;
}
</style>
<script type="text/javascript">
function showHideAT(){
var at = document.getElementById("at");
var w = at.offsetWidth;
at.opened ? moveAT(0, -200-w) : moveAT(20-w, 0);
at.opened = !at.opened;
}
function moveAT(x0, xf){
var at = document.getElementById("at");
var dx = Math.abs(x0-xf) > 25 ? 35 : 1;
var dir = xf>x0 ? 1 : -1;
var x = x0 + dx * dir;
at.style.top = x.toString() + "px";
if(x0!=xf){setTimeout("moveAT("+x+", "+xf+")", 10);}
}
</script>
<div id="at">
<div class="attab" onclick="showHideAT()"> </div>
<div class="atcontent">
<div align="center">
<div style="background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqy6b2bziAQnprxAgzepY0RiPRsO7FZXuyY1oikTj_KzdRNyE1-Lu1saO2fNVDkjcrFVklkCgaFJ843I9qMGP8h9fdNjGupsMqhyxCyB5Af2JfNO7moW5gZjvv-xFHUhGMt_EbIECgBGg/) no-repeat;">
#at{
position:fixed;
right:450px;
z-index:+1000;
}
* html #at{position:relative;}
.attab{
height:100px;
width:30px;
float:left;
cursor:pointer;
background:url();
}
.atcontent{
float:left;
border:2px solid #ff0000;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhPb7O1K_tulmIae8gNXeFi406M6-pi9f-zLZkwpkJPnoYsaJ1CA9aJTLBkmemOaBE3rGIxTLZJaSOkBV1mrbkealyB8Np60hmvFIqoqNKnitJyZOSbIR8WSJiSHXIYRCrRHOon6y_hOJr/) #000000 repeat-y center;
-moz-border-radius-topleft:15px;
-moz-border-radius-topright:15px;
-moz-border-radius-bottomleft:15px;
-moz-border-radius-bottomright:15px;
padding:10px;
}
</style>
<script type="text/javascript">
function showHideAT(){
var at = document.getElementById("at");
var w = at.offsetWidth;
at.opened ? moveAT(0, -200-w) : moveAT(20-w, 0);
at.opened = !at.opened;
}
function moveAT(x0, xf){
var at = document.getElementById("at");
var dx = Math.abs(x0-xf) > 25 ? 35 : 1;
var dir = xf>x0 ? 1 : -1;
var x = x0 + dx * dir;
at.style.top = x.toString() + "px";
if(x0!=xf){setTimeout("moveAT("+x+", "+xf+")", 10);}
}
</script>
<div id="at">
<div class="attab" onclick="showHideAT()"> </div>
<div class="atcontent">
<div align="center">
<div style="background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqy6b2bziAQnprxAgzepY0RiPRsO7FZXuyY1oikTj_KzdRNyE1-Lu1saO2fNVDkjcrFVklkCgaFJ843I9qMGP8h9fdNjGupsMqhyxCyB5Af2JfNO7moW5gZjvv-xFHUhGMt_EbIECgBGg/) no-repeat;">
</div>
</div>
<br />
<div align="right"><a href="javascript:void(0);" onclick="showHideAT()"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEWCQl3s0mjVXrpEgVB0R3l9CUb19ZE6qQcViqSr_ZQ90WXShVPvSRD6WYi34_kQq3_ACmBjFYqJoSnaRthw0RRCyAVuza77Z7ubuRMipdR9n14nK3XYfjV6bXr71udLtlaNpxvp9z0yM/" alt="close" title="Click here to Close Cbox" /></a></div>
<div align="left"><font size="2"><a http://exeloph.blogspot.com/2010/10/showhide-cbox-pada-posisi-atas.html"target=_blank"><div style="color: #444444;">
<span style="font-size: xx-small;">By enda fiVers</span></div></a></font></div>
</div></div></div>
<script type="text/javascript">
var at = document.getElementById("at");
at.style.top = (-200-at.offsetWidth).toString() + "px";
</script></center>
- Save
- Tambahkan Gadget HTML/Java script lagi untuk Icon Navigasinya, copas kode berikut :
<center><a href="javascript:void(0);"onclick="showHideAT()"/><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwHh1ZGdxraXcs0IwykWJhiJUwD4WIXj-1VXF9l4jfpCvze3zdhqQ7KnLWP-pbCUUpa4Wka1BsctVayZT47I4lr8FOqowYccoEECdBRc8wNfMRV947vHNlCLRLAJ7EGcLjMnNhepj3F4g/" alt="cbox" title="Click here to open Guest Book" /></a>
- Save
- Yang berwarna hijau adalah URL background kembang api dan kode warna backgroundnya (Background dapat diganti sesuai selera sobat)
- Yang Berwarna biru adalah background cbox
- Tang berwarna merah ganti dengan kode Cbox
- Yang berwarna kuning adalah URL icon navigasi Close
Semoga bermanfaat buat sobat semua.Trik ini juga saya blajar dari blog Enda Fivers. Selamat mencoba...
2 comments:
nyoba dulu sob,,
boleh sobat silahkan,semoga berhasil
Posting Komentar
MOHON MAAF
Link Hidup/komentar akan di hapus Atau di saring(tidak di tampilkan)