cookie 用户第一次访问时执行

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

<div id="zhezhaoyd"></div> <div class="clearfix"></div> <div class="yaoqing-yindao"> <div class="w1002 pr"> <div class="yaoqing-yindaobj"><a href="/user/InvitationCode"></a></div> <div class="w"></div> <div class="closeyaoqbtn"></div> </div> </div> <script> $(function () { //申请 $("#zhezhaoyd").height($(window).height()).width($(window).width()); $("#zhezhaoyd").css("background","url(/images/zhezhoabj_03.png) repeat left top") function yingdao(){ $("#zhezhaoyd").fadeIn(100); $(".yaoqing-yindao").fadeIn(100); } $("#zhezhaoyd,.closeyaoqbtn").click(function() { $("#zhezhaoyd").fadeOut(100); $(".yaoqing-yindao").fadeOut(200); });
if ($.cookie("yingdao") == null) { yingdao(); $.cookie("yingdao", '', 'true', { expires: 3650 }); } }) </script>

  

你可能感兴趣的:(cookie)