js代码
<script type="text/javascript" src="js/jquery-1.9.1.js"></script> <script> setTimeout(function(){ $('.thumbnail').trigger('click') },1000) // 底部广告栏的收起与展开 $('.thumbnail').on("click", function () { $(this).animate({"right": -146},400,function () { $(this).hide(); $('.mask').animate({"left": 0}, 600); }); }); $('.closeee').on("click", function () { //var thumbWidth = $('.thumbnail').width(); $('.mask').animate({ "left": "100%" }, 600, function() { $('.thumbnail').show().animate({"right": 0},400); }); }); </script>