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 8244377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:50:02+00:00 2026-06-07T21:50:02+00:00

I have an square image depicting a car on a transparent background. I want

  • 0

I have an square image depicting a car on a transparent background. I want to be able to click on car, yet when I click on it’s transparent background I’d like the click to go through the image and trigger on the underlying DOM element (or, specifically, other image).

Can that be achieved somehow?

  • 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-07T21:50:04+00:00Added an answer on June 7, 2026 at 9:50 pm

    That’s quite complex, but can be achieved by combining Pointer events to allow for the click to bubble up the DOM (reaching the img parent container), and a faux Canvas on top to detect a transparent pixel (which will be used as a flag to activate the event delegation).

    Pointer events were derived from the SVG model to allow for event delegation across layers. Note that they’re currently not supported on IE and Opera.

    Related Posts:

    • A technique used for pixel color detection
    • Get pixel from an HTML5 Canvas

    Demo:

    • pointer-events on jsFiddle

    Reference:

    • pointer-events on Mozilla Developer Network
    • Pixel based manipulation on Dev.Opera

    Further Read:

    • An article on the subject by Robert Nyman
    • John Resig on transforming image data
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I basically have a square image depicting a diagram and what I would like
I have the image like this: I want to split it into six squares,
I have an image with a square... In layout I want to set text
I have a square drawable image (drawable-l is 1280x1280) and I want it to
I want to achieve something like this: A) Is an square image, say 65x65.
I have a square image 40x40 that I want to make round via clipping,
I have a background image. I want to overlay a picture box over the
Lets say I have a non-square image.. If I increment the width and I
I have text next to a image (red square for now). When i make
let's say we have an image that contain square,circle and other few object at

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.