Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- #overlay_g{margin:0 0 0 0; z-index:500; position:fixed; display:none; background:#ffffff }
- #overlay_g .close{ position:absolute; top:0px; right:-35px; background: none; border: none; cursor:pointer; padding:0; margin:0; }
- #overlay_g .close:hover{ opacity:.8; }
- #overlay_g .close img{ display:block; }
- </style>
- <div class="modal" id="overlay_g">
- <button class="close"><img src="http://jquerytools.org/media/img/overlay/close.png"></button>
- <iframe src="ССЫЛКА_НА_ДОКУМЕНТ" width="585" height="500" scrolling="auto" frameborder="0" ></iframe>
- </div>
- <script>
- var overlay_button_g = '#block-new65'; //Идентификатор кнопки
- var overlay_block_g = '#overlay_g';
- jq_144(function($){
- $(overlay_block_g).overlay({top: '5%'});
- $(overlay_button_g).click(function(e){
- e.preventDefault();
- $(overlay_block_g).css('left', Math.max(($(window).width() - $(overlay_block_g).width()) / 2, 0));
- $(overlay_block_g).overlay().load();
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment