Forum test de codage de jin
Le Deal du moment : -50%
-50% sur les sacs à dos pour ordinateur ...
Voir le deal
19.99 €

popup

Voir le sujet précédent Voir le sujet suivant Aller en bas
paranoid
nola
Dans popup, posté le Mer 20 Juin - 9:06


Code:
<!--------------------POPUP-------------------->
<script type="text/javascript"
src="//ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
//
$('a.poplight[href^=#]').click(function() {
var popID = $(this).attr('rel'); //Get Popup Name
var popURL = $(this).attr('href'); //Get Popup href to define size
var query= popURL.split('?');
var dim= query[1].split('&');
var popWidth = dim[0].split('=')[1]; //Gets the first query string value
$('#' + popID).fadeIn().css({ 'width': Number( popWidth ) }).prepend('<a href="#" class="close"></a>');
var popMargTop = ($('#' + popID).height() + 80) / 2;
var popMargLeft = ($('#' + popID).width() + 80) / 2;
//Apply Margin to Popup
$('body').append('<div id="fade"></div>');
$('#fade').css({'filter' : 'alpha(opacity=80)'}).fadeIn(); //Fade in the fade layer - .css({'filter' : 'alpha(opacity=80)'})
return false;
});
$('a.close, .closewin').live('click', function() {
$('#fade, .popup_block').fadeOut(function() {
$('a.close').remove(); //fade them both out
});
return false;
});
});
</script>
nola
popup Superthumb

Pseudo(s) : jin
Âge : 19
Occupation : lol
Localisation : paris
paranoid
https://mmmmh.forumactif.org
Comment me contacter?
popup
Voir le sujet précédent Voir le sujet suivant Revenir en haut
Page 1 sur 1

Permission de ce forum:Vous ne pouvez pas répondre aux sujets dans ce forum
S P A C E S H I P :: informations utilisables-


Sauter vers: