15/04/2014, 21:11:50
Voici le code
Code :
$html = "";
if (!isset($_COOKIE['cmsms']) || $_COOKIE['cmsms']!="1"){
$html = <<<HTML
<script type="text/javascript">
jQuery.fn.center = function () {
this.css("position","absolute");
this.css("top", (($(window).height() - this.outerHeight()) / 2) +
$(window).scrollTop() + "px");
this.css("left", (($(window).width() - this.outerWidth()) / 2) +
$(window).scrollLeft() + "px");
return this;
}
$('#popupNews, #popupNews_close').click(function() {
$('#popupNews , .popupNews_content').fadeOut(function() {
$('#popupNews , #popupNews_content').remove();
});
return false;
});