0
[注:我不是編程高手。]/嘗試了很多:無法添加彈出顯示延遲
我想了很多,搜索這個平臺,但沒有找到任何解決辦法。
我需要在顯示一個彈出框中添加30秒延遲。我採取了腳本from here。腳本已經淡出時間,並且工作正常。
檢查下面的腳本......我用'delay()'替換'close()'。它不工作。
<script type="text/javascript">
$(document).ready(function() {
if($.cookie('the_cookie') != 1) { // If the_cookie not set to 1 then initializes and play calling the popup
$.cookie('the_cookie', '1', { expires: 1 }); // Value day (s) before expiration of the cookie
$.fancybox(
$("#popup").html(),
{
type : 'iframe',
href : '/contact.php', // url vers notre page html qui sera charg?e dans la popup en mode iframe
maxWidth : 415,
maxHeight : 475,
fitToView : false,
width : '90%',
height : '95%',
autoSize : false
}
);setTimeout(function(){ $.fancybox.delay(30000) },10000);
}
});
任何人都可以幫我找到解決辦法嗎? –
所以你想彈出關閉30秒後正確的。 – Hashy
@Hashy我想在30秒後顯示彈出窗口。 –