完成


起首先下JS及CSS
jquery-1.9.1.js jquery 主
jquery-ui.js UI JS
js.cookie.js Cookies JS
jquery-ui.dialog.css CSS定
- <script type="text/Javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
- <script type="text/Javascript" src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
- <script type="text/Javascript" src="{$template_dir}/js/js.cookie.js"></script>
-
- <link type="text/css" rel="stylesheet" href="{$template_dir}/css/jquery-ui.dialog.css" />
- <script>
-
- $(function(){
- //alert(Cookies.get("over18"));
- //定over18是不是1
- if (Cookies.get("over18")!="1") {
- $("#dialog_div").css('zIndex',9999);
- $("#dialog_div").dialog({
- autoOpen: true,
- show: "blind",
- hide: "explode",
- buttons: {
- "是,我已18": function() {
- Cookies.set("over18", '1');
- $(this).dialog("close");
- },
- "": function() { $(this).dialog("close");type : "cancel"; }
- }
- });
- $("#opener").click(function() {
- $("#dialog_div").dialog("open");
- return false;
- });
- }
- });
-
- </script>
-
- <div id="dialg_div" style="display: none;" title="路分">本域依『路分措』限制
- 限定年18已具有完整行能力且接受本站影音容
- 及各款之友才可,未18回入。
- 提防未18之未成年友路上限制容的文
- 建您可行路分基金TICRF分事的安定。
- 依路容分法,未18不得。</div>
代
文章出: NetYea
本篇文章引用自此: 站架 文章定位: