The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Image Loader Bug!

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #42561

    Hello all!

    I have made a simple image loader for my website on CodePen. Here’s the link to the full screen pen: My question is as follows: Once I click on an image, how can I prevent the user from clicking on another image in the background array of images without clicking the red close button first? I tried disabling the images in the background by using jQuery’s .attr() function, but to no avail. Please help! Thanks in advance!



    i’ve updated your pen here:

    if you have other elements on the page you’d like to block you may want to append div class=”overlay” to body instead of just to the images div.


    youre welcome! glad i could help :)

    by double post i meant that i went in to edit my post and accidentally made a new post.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.