Forums

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
    Posts
  • #42561
    srikarg
    Participant

    Hello all!

    I have made a simple image loader for my website on CodePen. Here’s the link to the full screen pen: http://codepen.io/srig99/full/qGzbn. 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!

    -srig99

    #123761
    dfogge
    Participant

    i’ve updated your pen here:
    http://codepen.io/derekfogge/pen/jFALD

    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.

    #123793
    dfogge
    Participant

    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.