<meta name='google-adsense-platform-account' content='ca-host-pub-1556223355139109'/> <meta name='google-adsense-platform-domain' content='blogspot.com'/> <!-- --><style type="text/css">@import url(https://www.blogger.com/static/v1/v-css/navbar/3334278262-classic.css); div.b-mobile {display:none;} </style> </head><body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar/959576372977513295?origin\x3dhttp://strawberryishaje.blogspot.com', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>
Tutorial membuat pop up shoutmix ! :D
Tutorial membuat pop up shoutmix ! :D was posted on: 31 January 2011 @2:42 AM | 0 love

heyhey , bloggie . Assalamualaikum : )
Lama sudaa isha tak buka blog baru nehh , sebab isha tunggu orang request tutorial dekat shoutbox isha kat blog farishadiary nehh . Hee :D . tapi jangan risau , hari ni isha nak membuka secret pasal 'macammana orang bole buadd shoutbox ngan terapung kat tengah tu kan ?' . okee , TADAA !! we start now okee.

  1. macam biase : Dashboard ~> Design ~> Add a gadget ~> HTML .
  2. Copy code dibawah ni 
<!-- Shoutmix By Ayie -->
<div style='display:scroll; position:fixed; top:45px; left:0px;'>
<script type="text/javascript" src="http://code.jquery.com/jquery-
latest.pack.js"></script>
<script>

$(document).ready(function() { 

 //select all the a tag with name equal to modal
 $('a[name=modal]').click(function(e) {
  //Cancel the link behavior
  e.preventDefault();
  
  //Get the A tag
  var id = $(this).attr('href');
 
  //Get the screen height and width
  var maskHeight = $(document).height();
  var maskWidth = $(window).width();
 
  //Set heigth and width to mask to fill up the whole screen
  $('#mask').css({'width':maskWidth,'height':maskHeight});
  
  //transition effect  
  $('#mask').fadeIn(1000); 
  $('#mask').fadeTo("slow",0.8); 
 
  //Get the window height and width
  var winH = $(window).height();
  var winW = $(window).width();
              
  //Set the popup window to center
  $(id).css('top',  winH/2-$(id).height()/2);
  $(id).css('left', winW/2-$(id).width()/2);
 
  //transition effect
  $(id).fadeIn(2000); 
 
 });
 
 //if close button is clicked
 $('.window .close').click(function (e) {
  //Cancel the link behavior
  e.preventDefault();
  
  $('#mask').hide();
  $('.window').hide();
 });  
 
 //if mask is clicked
 $('#mask').click(function () {
  $(this).hide();
  $('.window').hide();
 });   
 
});

</script>
<style>

a {color:#ffffff; text-decoration:none}

img { border: none; }

#mask {
  position:absolute;
  left:0;
  top:0;
  z-index:9000;
  background-color:#000;
  display:none;
}
  
#boxes .window {
  position:absolute;
  left:0;
  top:0;
  width:440px;
  height:200px;
  display:none;
  z-index:9999;
  padding:20px;
}

#boxes #ajaxshoutbox {
  background:url(URL IMAGE) no-repeat 0 0 

transparent; 
  width:377px; 
  height:500px;
  padding:70px 30px 30px 56px;
}

#closesb {
   padding:2px 0 0 0;
}

#author {
   padding:8px 0 0 168px;
}

</style>




<ul>
<center>
<a href="#ajaxshoutbox" name="modal"><img 

src="URL IMAGE UNTUK ICON SHOUTBOX" /></a>
</center>
</ul>

<div id="boxes">

<!-- Start Ajax Shoutbox -->
<div id="ajaxshoutbox" class="window">

LETAK CODE SHOUTMIX ANDA DISINI 

<div id="author">
<a target="blank" href="http://ayieslife.com/pop-up-shoutmix-tutorial/"/><img 

src="http://img101.imageshack.us/img101/331/getajax.png" /></a>
</div>
<div id="closesb">
<input type="button" value="Close" class="close" />
</div>
</div>
<!-- End of Ajax Shoutbox -->

<!-- Mask to cover the whole screen -->
<div id="mask"></div>
</div>

<!-- Shoutmix By Ayie --></div>
    3. Paste code di atas ini di HTML gadget tadi . bolee ? 
    4. Kadangkadang width dan height diaa tak berape nak betul . So , korangg pandaipandai  la adjust yaa.
    5. Ohh yaa ! , sebelum terlupa isha nak bagitahu . Nampak tak tulisan berwarna pink ? haa , sambung tulisan tuu (naik atas) okee ? isha buat camtu sbb tak muat . Sorry peeps : )   
    6. Last sekali , save and preview laa :D . Bila dah puas hati then save . kann dah jadi : )

Kalau takk jadi cakap yaa , biar isha btulkan apeape yang patut . okee ? Thankyouu and Goodluck ! :D

kredit : Syamila


About the girl
YEAH ! This is my second blog. Please view my official blog. Thanks and have a fantastic day. Click on the picture ^ to go back home.

TWITTERTUMBLR

Tab Menu :D

HOME SWEET HOME

Bella Sweety Ain Sweety Nazihah Buddy

Sebelum ni :)



« Up »


Copyright ©. Layout by MochaFrappes.
Please view with Google Chrome. Materials: TFN & DRI Inspired by: Miu and Juliana All rights reserved 2011 - Infinite.