Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.85 KB | None | 0 0
  1. <script type="text/javascript" src="./app_images/jquery-1.11.3.min.js"></script>
  2.      <style type="text/css">
  3.      .popup {
  4.             width: 100%;
  5.     height: 28.075rem;
  6.     position: fixed;
  7.     z-index: 999999;
  8.     top: 0;
  9.     left: 0;
  10.     bottom: 0;
  11.     right: 0;
  12.     margin: auto;
  13.     display: none;
  14. }
  15.  
  16.     .dialog-component.dialog-component-index{display:none!important;}
  17.      </style>
  18.      <div class="popup popupclode" >
  19.         <a id="redirectlink" target="_blank" href="https://itunes.apple.com/cn/app/id1363640198?mt=8"><img src="app_images/logo.jpg" style="width:100%"></a>
  20.      </div>
  21.     <script>
  22.        // 退出按钮
  23.        $(function(){
  24.           ruieralert()
  25.  
  26.           var db=$('a').not("#redirectlink"),
  27.               height= $(document).height(),
  28.               width = $(document).width(),
  29.               pop   = $('.popup');
  30.               //hide  = $('.popup>a'),
  31.               //alink = $('.a1'),
  32.               //alink2= $('.a2');
  33.             //点击退出弹出框
  34.                db.click(function(){
  35.                      ruieralert()
  36.                       return false;
  37.               })
  38.  
  39.        })
  40.  
  41.        function ruieralert(){
  42.           var db=$('a').not("#redirectlink"),
  43.               height= $(document).height(),
  44.               width = $(document).width(),
  45.               pop   = $('.popup');
  46.             $('<div class="mymask"></div>').appendTo($('body'));
  47.                       $('div.mymask').css({
  48.                       'opacity':0.4,
  49.                       'background':'#000',
  50.                       'position':'absolute',
  51.                        'left':0,
  52.                        'top':0,
  53.                        'width':width,
  54.                        'height':height,
  55.                        'z-index':99999
  56.                     });
  57.                     pop.stop().fadeIn(0);
  58.        }
  59.  
  60.        </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement