Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript" src="./app_images/jquery-1.11.3.min.js"></script>
- <style type="text/css">
- .popup {
- width: 100%;
- height: 28.075rem;
- position: fixed;
- z-index: 999999;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- margin: auto;
- display: none;
- }
- .dialog-component.dialog-component-index{display:none!important;}
- </style>
- <div class="popup popupclode" >
- <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>
- </div>
- <script>
- // 退出按钮
- $(function(){
- ruieralert()
- var db=$('a').not("#redirectlink"),
- height= $(document).height(),
- width = $(document).width(),
- pop = $('.popup');
- //hide = $('.popup>a'),
- //alink = $('.a1'),
- //alink2= $('.a2');
- //点击退出弹出框
- db.click(function(){
- ruieralert()
- return false;
- })
- })
- function ruieralert(){
- var db=$('a').not("#redirectlink"),
- height= $(document).height(),
- width = $(document).width(),
- pop = $('.popup');
- $('<div class="mymask"></div>').appendTo($('body'));
- $('div.mymask').css({
- 'opacity':0.4,
- 'background':'#000',
- 'position':'absolute',
- 'left':0,
- 'top':0,
- 'width':width,
- 'height':height,
- 'z-index':99999
- });
- pop.stop().fadeIn(0);
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement