Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8980369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:04:21+00:00 2026-06-15T20:04:21+00:00

I created a little Find the Differences games. It includes an image of two

  • 0

I created a little Find the Differences games.
It includes an image of two identical images. The image is the background on a div with set height and width. This div is position relatively.

On it, I positioned invisible divs on each of the differences, absolutly.

All is working, but now I need to know when someone clicks on the container div and not directly on one of the changes divs.

Sounds easy, I planned to create and event for clicking the background image (relative div), and stop propagation and default when clicking on real difference area.

But for some reason, even if I click on a real difference, the event starts from the background image. than, if the click was on a real difference, it propagates to the difference div.

I tried to play with the z-index, tried switching the diffrences from divs to A tags, but nothing changed that…

This is the code for a question, differences divs are inside the main div (game).

<div id="q1" class="game center relative_container" style="display: block;">
    <div id="q1_p1" mirror="q1_1" class="pointer"></div>
    <div id="q1_p1_o" mirror="q1_1" class="pointer"></div>        
    <div id="q1_p2" mirror="q1_2" class="pointer"></div>
    <div id="q1_p2_o" mirror="q1_2" class="pointer"></div>        
    <div id="q1_p3" mirror="q1_3" class="pointer"></div>
    <div id="q1_p3_o" mirror="q1_3" class="pointer"></div>        
</div>

I would be glad to hear any idea.

It works for me if I add an inlinde onclick event to the divs, but I rather not use that…

Thanks for your time and effort 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T20:04:22+00:00Added an answer on June 15, 2026 at 8:04 pm

    OK, so when I changed (by bfavaretto clue) from .live to .on, suddenly the order of events was OK again. Maybe it has somthing to do with live looking for new elements bounded to the event, maybe someone else can explain but that fixed that…
    Thanks!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wrote a little program that tries to find a connection between two equal
I created a little web spider in Python which I'm using to collect URLs.
I've created a little script for displaying a calendar but the month is 1
I have created a little test project to try to resolve a problem I
Hi I have created a little application to move some files around and put
I've just created a little app that programmatically compiles code using the C# Compiler,
I have created a little example,please have a look, http://jsfiddle.net/bWTwL/ I want to have
Got a strange problem created a little stored proc which need to execute a
I recently started using JQuery and created a little slider to display logos of
Ok, I have created a little utility with AppleScript and used Automator to turn

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.