我需要一些jQuery弹出窗口的帮助,更新我的一个客户端网站,无法让代码工作。需要它以便它在加载时出现,然后在点击时我理解它将在会话的剩余时间内消失。
请参阅代码笔的链接 - http://codepen.io/hazzaps/pen/bBjWwx
<div id="popup_disclaimer" style="height: 50%; width: 30%; position: fixed; background-color: white; left: 30%; right: 30%; top: 0%; border-radius: 5px; z-index: 100000; padding: 20px 50px 80px; box-shadow: rgb(84, 84, 84) 0px 0px 20px 3px;">
<h3 style=" TEXT-ALIGN: center; color: #b8292f;">DISCLAIMER</h3>
<p id="popup_disclaimer_text" style="
/* padding: 45px; */
max-height:;
max-height: 100%;
overflow: auto;">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<strong style="
float: right;
margin-top: 10px;
cursor: pointer;">
<a onclick="acceptTerms();">I Understand</a></strong>
</div>
任何帮助将不胜感激!
答案 0 :(得分:0)
在jquery :
$(window).load(function() {
//Display code here
});