Tutorial tuk Faeznur Fatihah Saad



Tutorial Untuk Hide ShoutBox

Efiey Pun x berapa pandai nak wat ajar tapi bule larh ajar sikit2 k... just copy yang kat bawah niey... pastu yang kaler merah tu korang ganti ngan url image yang korang suka k... yang Hijau plak korang letak code shoutbox korang ...


      p/s: Tekan  Ctrl+C Law nak Copy K... Pas da copy paste kn je kat add gadget --> Html/javascript k... seperti biasa... 


<style type='text/css'>
a.linkopacity img {
filter:alpha(opacity=50);
-moz-opacity: 0.5;
opacity: 0.5;
-khtml-opacity: 0.5;}

a.linkopacity:hover img {
filter:alpha(opacity=100);
-moz-opacity: 1.0;
opacity: 1.0;
-khtml-opacity: 1.0; }
</style>

<div style='display:scroll; position:fixed; top:50px; right:-0px;'>


<!-- 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:440px;

height:200px;

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="Url Image Untuk Korang Klik" border="0" /></a> </center> </ul>

<div id="boxes">

<!-- Start Shoutbox -->

<div id="evariena" class="window">

Kat Sini Niey Plak Korang Letak Code ShoutBox Korang K


<div id="author">

</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>

<!-- End of Ajax Popup Shoutbox-->


</div>



 Dah siap... law x jd gtaw ngan efiey... 

3 comments:

  1. Good2 tak kedekut ilmu..:)

    kak nad ada tag efiey kat sini >> "SYOKNYA BERBLOGGING"

    ReplyDelete
  2. salam perkenalan...

    marilah join kontest blog saya : http://fasham87.blogspot.com

    marilah beli brooch , hairpin :
    http://fasham87.blogspot.com/2011/05/new-stock.html

    ReplyDelete
  3. nadya O'Conner : Thanks... efiey pun bru maw b'jinak2 dlm blog niey... hehhee

    tiha: slam perkenalan.... okok i will beb... :)

    ReplyDelete

Komen-komen Larh =)