15/10/11

Tutorial cara sembunyikan shoutbox dengan light effect


Tutorial cara sembunyikan shoutbox dengan light efek by Blogger Blog Tutorial

Cara sembunyikan shoutbox jenis ni aku suka..sebab memang cool..jenis ni x ramai orang pakai...

klik pada butang shout tu untuk tengok live demo






Cara pasang senang saja....desaign---ada gadget---html / javascript

copy dan paste code di bawah
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.pack.js"></script>
<script>
$(document).ready(function() {
$('a[name=modal]').click(function(e) {
e.preventDefault();
var id = $(this).attr('href');
var polsk4h4ckrewHeight = $(document).height();
var polsk4h4ckrewWidth = $(window).width();
$('#polsk4h4ckrew').css({'width':polsk4h4ckrewWidth,'height':polsk4h4ckrewHeight});
$('#polsk4h4ckrew').fadeIn(1000);
$('#polsk4h4ckrew').fadeTo("slow",0.8);
var winH = $(window).height();
var winW = $(window).width();
$(id).css('top', winH/2-$(id).height()/2);
$(id).css('left', winW/2-$(id).width()/2);
$(id).fadeIn(2000);
});
$('.window .close').click(function (e) {
e.preventDefault();
$('#polsk4h4ckrew').hide();
$('.window').hide();
});
$('#polsk4h4ckrew').click(function () {
$(this).hide();
$('.window').hide();
});
});
</script>
<style>a {color:#ffffff; text-decoration:underline}
img { border: none; }
#polsk4h4ckrew {
position:absolute;
left:0;
top:0;
z-index:9000;
background-color:#000;
display:none;
}
#polskah4ckrew .window {
position:fixed;
left:0;
top:0;
width:440px;
height:200px;
display:none;
z-index:9999;
padding:20px;
}
#polskah4ckrew
#polsk4hackrew {
background:#151515 transparent;
width:272px;
height:460px;
padding:56px 0 20px 5px;
}
#kelosed {
padding:2px 0 0 0;
}
</style>
<ul><center> <a href="#polsk4hackrew" name="modal"><Button>ShoutBox</button></a> </center> </ul>
<div id="polskah4ckrew">
<div id="polsk4hackrew" class="window">

Gantikan tulisan ini dengan code shoutbox
<div id="kelosed"><br/><center><input type="button" value="Close" class="close" /></center>
</div></div>
<div id="polsk4h4ckrew"></div></div>


Gantikan tulisan gantikan tulisan kaler pelik tu dengan code shoutbox anda..dan selesai....

Sekian...

Tiada ulasan:

entri ja

Related Posts Plugin for WordPress, Blogger...