第一次打开网页显示的提示框,cookie记录
JavaScript Code
- <script>
- $(function () {
- $('#my-welcome-message').firstVisitPopup({
- cookieName : 'homepage',
- showAgainSelector: '#show-message'
- });
- });
- </script>
XML/HTML Code
- <p><a id="show-message">Show mesage again</a></p>
- <div id="my-welcome-message">
- <h2>Welcome to my site</h2>
- <p>Hello, welcome to my website.</p>
- </div>
原文地址:http://www.freejs.net/article_jquerywenzi_481.html