Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery popup does not work - simple custom popup
    primarykey
    data
    text
    <p>I have a simple jquery popup. I am having issues making it work. Right now the popup does not show up. The Live webpage can be seen at: <a href="http://www.domainandseo.com/fibro/index.html" rel="nofollow">http://www.domainandseo.com/fibro/index.html</a></p> <p>If you scroll down a little there is a link that says "click to enlarge" which should make the popup show up.</p> <p>My html is:</p> <pre><code>&lt;div id="lightbox"&gt; &lt;a href="" class="cross close"&gt;&lt;img src="img/cross.png" alt="X" /&gt;&lt;/a&gt; &lt;img src="img/lightbox-img.jpg" alt="Supplemental Facts" class="lightbox-img" /&gt; &lt;/div&gt; &lt;div class="overlay"&gt;&lt;/div&gt; </code></pre> <p>The CSS is:</p> <pre><code>#lightbox { width: 722px; height: 732px; background: #FFF; z-index: 1000; position: absolute; left: 250px; top: 100px; display: none; } .cross { float: right; } .lightbox-img { margin-left: 90px; margin-top: 45px; } .overlay { position: absolute; top:0; left:0; bottom:0; right:0; width:100%; height:130%; z-index:998; background: url(../img/gray.png) repeat; display: none; } </code></pre> <p>And the jQuery for the popup:</p> <pre><code>$(document).ready(function(){ //open popup $(".pop").click(function(){ $("#lightbox").fadeIn(1000); $(".overlay").css ({display: 'block'}); positionPopup(); }); //close popup $(".close").click(function(){ $("#lightbox").fadeOut(500); $(".overlay").css ({display: 'none'}); }); }); //position the popup at the center of the page function positionPopup(){ if(!$("#lightbox").is(':visible')){ return; } $("#lightbox").css({ }); } //maintain the popup at center of the page when browser resized $(window).bind('resize',positionPopup); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload