3 // poser le cookie au callback de la box chargee
4 var set_cookie = function() {
5 $.cookie("modalsplash", box_settings
.splash_url
, { expires
: 7 });
8 $.modalboxsplash = function(href
, options
) {
9 $.fn
.mediabox($.extend({
11 onComplete
:set_cookie
,
15 // ouvrir la splash page si pas deja vue
16 if ($.cookie("modalsplash") != box_settings
.splash_url
)
17 $.modalboxsplash(box_settings
.splash_url
);