Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Cookies in Edge Animate

$
0
0

How do I get this to work in my Edge Animate site? This works in regular sites I've done. I just copy and paste this into the head of a file. However, when I do this to a page created in Edge Animate, it breaks the file to the point that I can't even open it in Edge Animate anymore. It is supposed to open a Welcome graphic and use a cookie so it doesn't always pop up.

 

 

<script type="text/javascript" src="js/jquery.cookie.js"></script>

<script type="text/javascript" src="shadowbox-3.0.3/shadowbox.js"></script>

<script type="text/javascript">

Shadowbox.init({

 

});

 

window.onload = function() {

        if( !$.cookie('the_cookie') ) {

 

    // open a welcome message as soon as the window loads

    Shadowbox.open({

        content:    '<div id="welcome-msg"><a onclick="Shadowbox.close()"><img src="images/welcome.png"></a></div>',

        player:     "html",

        title:      "",

        height:     528,

        width:      527

    });

$.cookie('the_cookie', 'the_value'); }

};

</script>


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>