Bonjour,

Je travaille ponctuellement sur ce site.

Une popup avec une fancybox vous dit coucou pendant la période des soldes sur la page d'accueil
Le problème c'est qu'elle n'apparait pas avec IE7 ni avec IE8, pourquoi ?
Pourtant, ici (au bureau), on m'assure qu'avant ça fonctionnait...

Comment résoudre ce problème s'il vous plait ?

Voici le code concerné :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
 
<!-- POUP UP ! -->
<link rel="stylesheet" type="text/css" href="popup/jquery.fancybox-1.3.1.css" media="screen" />
 
<!-- Redondant avec l'appel à JQuery de _header.php <script type="text/javascript" src="popup/jquery.min.js"></script> -->
<script type="text/javascript" src="popup/jquery.mousewheel-3.0.2.pack.js"></script>
<script type="text/javascript" src="popup/jquery.fancybox-1.3.1.js"></script>
<script type="text/javascript" src="popup/jquery.cookie.js"></script>
<script>
$(document).ready(function(){
 
    // !!! SEE THIS PLEASE !!!
    // delete this line to make the modal box load only ONCE
    // if you let it set to 'false' it will show every time .. set it to 'true' and it will never show
    $.cookie("modal", 'false')
 
    /** MODAL BOX **/
    // if the requested cookie does not have the value I am looking for show the modal box
    if($.cookie("modal") != 'true')
    {
        //var _message_to_show = '<a href="#" id="modal_close">ENTER</a> <a href="" id="modal_exit">EXIT</a><br /><br />';
				var _message_to_show = '<div class="popup"><a href="#" id="modal_close"><img src="promo/accueil.png" width="520" height="312" /><br />Entrez dans le site &rsaquo;&rsaquo;</a></div>';
 
        // on page load show the modal box
        // more info about the options you can find on the fancybox site
        $.fancybox(
            _message_to_show,
            {
                'width'             : 520,
                'height'            : 312,
                'transitionIn'      : 'none',
                'transitionOut'     : 'elastic',
                'centerOnScroll'    : 'true',
                'overlayOpacity'    : 0.9,
                'overlayColor'      : '#000',
                'modal'             : 'true'
            }
      );
 
        // in the message is a link with the id "modal_close"
        // when you click on that link the modal will close and the cookie is set to "true"
        // path "/" means it's active for the entire root site.. if you set it to "/admin" will be active on the "admin" folder
        // expires in 7 days
        // "modal" is the name i gave the cookie.. you can name it anything you want
        $('#modal_close').live('click', function(e) {
            e.preventDefault();
            $.cookie("modal", "true", { path: '/', expires: 7 });
 
            $.fancybox.close()
        });
    }
 
});
</script>
<?php
}
?>
je vous remercie tous