Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- .simple_overlay_p { display:none; z-index:10000; position:absolute; background-color:#fff; width:675px; min-height:200px; max-height:400px; border:1px solid #666; padding:10px; -moz-box-shadow:0 0 90px 5px #000; -webkit-box-shadow: 0 0 90px #000; } .overlay_block{overflow:auto; } .simple_overlay_p .close { background-image:url(http://jquerytools.org/media/img/overlay/close.png); position:absolute; z-index:10001; right:-15px; top:-15px; cursor:pointer; height:35px; width:35px; }
- </style>
- <script>
- jq_181(function($){
- var text_block = '#block-new1'; /* Блок с текстом */
- var button = '#block-new2 a'; /* кнопка вызова */
- $('body').append('<div class="simple_overlay_p" id="overlay1"></div>');
- $('#overlay1').html('<div class="overlay_block">' + $(text_block).html() + '</div>');
- $(text_block).hide();
- $('#overlay1').overlay({ top: '10%', mask: { color:'#000', opacity:.5 } });
- $('.overlay_block, .simple_overlay_p').css({ 'max-height': $(window).height() * 0.7 + 'px'});
- $(button).click(function(e){
- e.preventDefault();
- $('#overlay1').overlay().load();
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement