> Update >>
Home » , » Sorok shoutmix mengunakan code jquery

Sorok shoutmix mengunakan code jquery

Sorok shoutmix mengunakan code jquery.
Salin code di bawah ini,dan letak ,di dalam HTM/JavaScript.

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

$('a[name=ybl]').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 tbbHeight = $(document).height();

var tbbWidth = $(window).width();

//Set heigth and width to tbb to fill up the whole screen

$('#tbb').css({'width':tbbWidth,'height':tbbHeight});

//transition effect

$('#tbb').fadeIn(1000);

$('#tbb').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();

$('#tbb').hide();

$('.window').hide();

});

//if tbb is clicked

$('#tbb').click(function () {

$(this).hide();

$('.window').hide();

});


});

</script>

<style>a {color:#000000; text-decoration:none}

img { border:2px none; }

#tbb {

position:absolute;

left:50;

top:50;

z-index:9000;

background-color:transparent;

display:none;

}

#ddt .window {

position:fixed;

left:20;

top:10;

width:440px;

height:700px;

display:none;

z-index:9999;

padding:20px;

}

#ddt #yblshoutbox {

background-color:#999999;


width:440px;

height:460px;

padding:56px 0 20px 5px;

}

#ttp {

padding:2px 0 0 0;

}

</style>

<ul><center> <a href="#yblshoutbox" name="ybl"><img src="http://2.bp.blogspot.com/_aumly7lB8Eo/TRIZBTQdDvI/AAAAAAAAAAY/WeO7lU2XWd0/s1600/teksi.jpg" border="0" width="158" height="58" /></a> </center> </ul>

<div id="ddt">

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


LETAK CODE SHOUTMIX DI SINI




<div id="ttp"><input type="button" value="Close" class="close" />

<div id="tbb"></div></div></div></div></div>



0 comments:

Post a Comment

 
list blog tutorial
Ambil banner

Template

More on this category »
Submit ExpressSEO Tools My Ping in TotalPing.com

tutorial

© All Rights Reserved | Best View With Google Chrome