我一直在使用bpopup成功添加在我的主頁全屏彈出。JQuery的在首頁第一次訪問
它的偉大工程,但只有當按下按鈕的工作原理。我想只要用戶訪問該網站首次彈出出現Ò網頁,只有網頁。
的代碼,我是:
<script>
// Semicolon (;) to ensure closing of earlier scripting
// Encapsulation
// $ is assigned to jQuery
;(function($) {
// DOM Ready
$(function() {
// Binding a click event
// From jQuery v.1.7.0 use .on() instead of .bind()
$('button').bind('click', function(e) {
// Prevents the default action to be triggered.
e.preventDefault();
// Triggering bPopup when click event is fired
$('#announce').bPopup();
});
});
})(jQuery);
</script>
這個偉大的工程,但如何添加一個cookie相關的處理呢?
在此先感謝您的幫助。它真的很感激。
感謝。 V有幫助。 – user1386796