Grow your CSS skills. Land your dream job.

Javascript Code Help

  • # January 30, 2013 at 7:57 pm

    I have already posted a discussion about this issue but no one seems to know whats wrong. So i post it again hoping that someone new can see this post and help me out. I’m having an issue with a JavaScript image pop-up were the website scrolls down automatically when the close button is clicked for the pop-up. I still don’t know what the issue is and i hope someone can help me.

    To see the issue visit this [WEBSITE](http://reallycoolstuff.net/JV/ “”) and click on the “Drawings” section. Then click on the first image which is batman. A pop-up would show up. Then click the “Close” button and see how the page scrolls down just a bit.

    [HERE](http://codepen.io/Jarolin/pen/rCKgz “”) you can see the source code of the javascript pop up and see whats wrong with it. Thank you.

    Either a solution or an alternative method to doing this would be appreciated.

    # January 30, 2013 at 8:30 pm

    I can’t reproduce this. What browser?

    # January 30, 2013 at 8:55 pm

    I see the problem. Definitely has to do with the hash in the anchor tag:

    X

    If you simply change that to a span, no more problem:

    X

    You’ll need to update the styles for it, though.

    As a side note: you’ll have a lot easier of a time managing the website if you kill those iFrames.

    # January 30, 2013 at 9:40 pm

    @TheDoc

    +100 For you sir. Thank you.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".