nathan_lp

Privacy Policy

Jul 27th, 2013
1,998
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <style>
  2. .simple_overlay { 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 .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; }
  3. </style>
  4. <script>
  5. jq_181(function($){
  6. var text_block = '#block-new2'; /* Блок с текстом */
  7. var button = '#block-new3 a'; /* кнопка вызова */
  8. $('body').append('<div class="simple_overlay" id="overlay1"></div>');
  9. $('#overlay1').html('<div class="overlay_block">' + $(text_block).html() + '</div>');
  10. $(text_block).hide();
  11. $('#overlay1').overlay({ top: '10%', mask: { color:'#000', opacity:.5 } });
  12. $('.overlay_block, .simple_overlay').css({ 'max-height': $(window).height() * 0.7 + 'px'});
  13. $(button).click(function(e){
  14. e.preventDefault();
  15. $('#overlay1').overlay().load();
  16.  
  17. });
  18. });
  19. </script>
RAW Paste Data