Home » » Membuat Menu Iklan (jQuery Ads Popout)

Membuat Menu Iklan (jQuery Ads Popout)

Caranya adalah sebagai berikut :

1. Login ke Akun Blogger anda masing-masing.
2. Klik Design or Rancangan, kemudian pilih Edit HTML
3. Centang (Expand Widget Template)
4. Untuk keamanan lebih baik kita (Download Template Lengkap)
5. Gunakan (Ctrl+F) or (Alt+E+F) untuk memudahkan pencarian
6. Cari kode ]]></b:skin> lalu simpan kode berikut diatas kode tadi :
#infout{
 margin:0;
 padding:0;
 position:absolute;top:250px;
 left:0;width:320px;
 height:350px;z-index:100;
 overflow:hidden;
 }
#infout a,#infout a img{
 text-decoration:none;border:0;outline:0
 }
#infout a span{
 display:none
 }
#infout #judul{
 width:20px;
 height:350px;
 position:relative;left:0;z-index:102
 }
#infout a#tutup{
 position:absolute;
 background:transparent url(http://lh3.ggpht.com/_6-JIvzw7Lbs/TO6BMNhIrXI/AAAAAAAAABQ/r4s_MBsv5GM/s800/trans_pixel.gif);
 top:0;left:230px;
 height:25px;
 width:65px;
 cursor:pointer
 }
#infout a#buka{
 cursor:pointer
 }
#infout #wadah{
 position:absolute;
 top:10px;left:20px;
 margin-left:-300px;z-index:101
 }

7. Cari kode </head> lalu simpan kode berikut diatas kode tadi:
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'/>
<script language='javascript' src='http://plugins.jquery.com/files/jquery.cookie.js.txt'/>
<script type='text/javascript'>//<![CDATA[
$(document).ready(function() {
 var infoOut = "#infout";
 var infoBox = "#wadah";
 var infoLebar = $(infoBox).width() + $("#judul").width();
 var infoCookie = "infokuki";
 function bukaInfo() {
  $(infoOut).width(infoLebar+"px");
  $(infoBox).animate({marginLeft: "0"},1200)
  $.cookie(infoCookie, null);
 }
 function tutupInfo() {
  $(infoBox).animate({marginLeft: "-"+infoLebar+"px"},1200,"linear",
   function(){ $(infoOut).width($("#judul").width() + "px"); }
  );
  $.cookie(infoCookie,'closed',{expires: 28});
 }
 $("#buka").click(function() {
  if(!$.cookie(infoCookie)) {
   tutupInfo();
  } else {      
   bukaInfo();
  }
  return false;
 });
 $("#tutup").click(function() {
  tutupInfo();
  return false;
 }); 
 if(!$.cookie(infoCookie)) {
  $(infoOut).animate({opacity: 1.0}, 1500, "linear", bukaInfo);
 }
});
//]]></script>

8. Cari kode </body> lalu simpan kode berikut diatasnya:
<div id='infout'>
 <div id='judul'>
  <a id='buka'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEig4rTCvduHjxKfhjCDmYBhdri0meZKUrry9A7xvzoNo3jKRlB0CMr0NazQvomMxe-_-ehpyic2flgvbrZjhP-yMB5PYGhkjChHAFwP3migpES7etfOgFIpt5KOARx8eFdJ4EZqEq4qglA/s1600/cap-popout.png' width='20' height='350' alt='Buka Iklan'/></a>
 </div>
 <div id='wadah'>
  <a id='tutup' title='Tutup Informasi'><span>Tutup</span></a>
  <a href='http://www.3xploration.co.cc/' title='Exploration' target='_blank'><img src='http://lh3.ggpht.com/_6-JIvzw7Lbs/TO6BLxZ9MzI/AAAAAAAAABI/_TTRbhV3YMk/s800/ads-popout.png' width='300' height='330' alt=''/></a>
 </div>
</div>

NB: Berwarna biru silahkan ganti sesuai kebutuhan
Share
Related Post

0 comments:

Archives

Label


ShoutMix chat widget
Guest Book
 

Subscribe Via Email

Enter your email address:

Delivered by FeedBurner

My Blog

Show

Exploration


Show

[Valid Atom 1.0]
Google PageRank Checker Powered by  MyPagerank.Net

Powered by FeedBurner

SEO Stats powered by MyPagerank.Net

Show

Show

Exploration

Welcome To My Blog

I hope you find what you're looking for here . . Thank you for visit to my simple blog . .

Rizky Maulana

This life is a sacrifice and struggle . . and I am just a man who wants to be better than ever . .