時間:2024-02-12 07:20:02 | 來源:網(wǎng)站運營
時間:2024-02-12 07:20:02 來源:網(wǎng)站運營
網(wǎng)頁怎么做彈出窗?:<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(".showdiv").click(function(){ var box =300; var th= $(window).scrollTop()+$(window).height()/1.6-box; var h =document.body.clientHeight; var rw =$(window).width()/2-box; $(".showbox").animate({top:th,opacity:'show',width:600,height:340,right:rw},500); $("body").prepend("<div class='mask'></div>"); $(".mask").css({opacity:"0.5"}).css("height",h); return false; }); $(".showbox .close").click(function(){ $(this).parents(".showbox").animate({top:0,opacity: 'hide',width:0,height:0,right:0},500); $(".mask").fadeOut("fast"); }); }); </script>素材火上有很多,我現(xiàn)在只會寫這樣的。你可以去看看。
關(guān)鍵詞:
微信公眾號
版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。