tutorial untuk hide shoutbox jenis pop-up window

hye ~
kowunk tau ta ape maksod pop-up window ?
alah ~
kowunk tekan shoutbox saia uh .
nnty die kuar tetibe kan ?
selalunye die akan kuar dri tepi .
but yg nie kua tetibe .
ukey . kalau na buat follow step nieh ~
saia baru jewh belajar buat tuto neih .
so , follow je la ye ~

first : dashboard - design - add a gadget - html/javascript
then : copy code nieh dan masokkan dalam kotak html uh ~

<center><style type='text/css'></style>
<div style='display:scroll; position:fixed; top:50px; right:-0px;'>

<center><!-- Start Ajax Popup Shoutbox by -->
<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});






//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>
img { border: none; }
#mask {
position:absolute;
left:0;
top:0;
z-index:9000;
background-color:#000;
display:none;
}


#boxes .window {
position:fixed;
left:0;
top:0;
width:225px;
height:400px;
display:none;
z-index:9999;
padding:20px;
}
#boxes #evariena {
background:url(http://2.bp.blogspot.com/_LhHZAifMoFE/TSkeMu6gAOI/AAAAAAAAD-Q/X57UBEBm7Wc/s1600/Mary%2Bshout.png

) no-repeat 0 0 transparent;
width:720px;
height:460px;
padding:56px 0 20px 5px;
}
#closesb {
padding:2px 0 0 0;
}
#author {
padding:8px 0 0 168px;
}
</style>
<ul><center> <a href="#evariena" name="modal"><img src="letak URL image kowunk at sini" border="0" /></a> </center> </ul>
<div id="boxes">
<center><!-- Start Shoutbox -->
<div id="evariena" class="window">
letak code shoutbox kowunk at sini

<div id="author">
</div><div id="closesb"><input type="button" value="Close" class="close" />
</div></div></center></div><!-- End of Ajax Shoutbox -->
<!-- Mask to cover the whole screen -->
<div id="mask"></div></center></div>
<!-- End of Ajax Popup Shoutbox--><center>
</center></center><center></center>


*yang warna pink : kowunk tuka ngan background yang kowunk na ~ 
*yang warna merah : kowunk gantikan dengan URL image kowunk ~
kalau kowunk nak icon , kowunk boleyh ambek dekat sini :
http://chintakamoo.blogspot.com/2011/08/cutey-icon-for-shoutbox.html
*yang warna hijau : kowunk letak code shoutbox kowunk at situ ~

kalau ade pape masalah sile COMENT post nieyh ye ~

*thanx ye fiey ~

sekian ~


kalau dha bace , sila like or komen yaww , terima kasih .

6 00 suara hati mereka:

Bitter Sweet Efiey said...

w'c....:) harap berguna untuk korang.. k

princess d0UbLe F said...

@Bitter Sweet Efiey
=)

emaa babyverrorecca said...

tak jadik lahh ..

notygirl said...

ta jadi ? ce try lagi , gadis dha tuka siket code uh , try lha .

aina adila said...

dah jadi :D thanks ,

princess d0UbLe F said...

@aina adilaukeyh dear :)