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

  • Home
  • SEARCH
  • 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 8719115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:42:48+00:00 2026-06-13T06:42:48+00:00

I have a background image which has a hole into, so that we are

  • 0

I have a background image which has a hole into, so that we are able to see whats below it.
I place another image below background image, so that its visible through the hole. Now i need to drag that below image from the transparent hole.

Background image:
enter image description here

I am placing another image behind it using z-index and associating draggable with it. I want the below image to be draggable if i drag on the circular hole.
Currently it wont happen as i have associated draggable with another div which is behind and i am dragging on div above it. How can i make the drag event on above div get propagated to below div and it gets dragged?

I hope i am clear here.

my div’s:

<div class="container">
 <div id="screen">
    <img src="kailash.jpg" class="drag-image" id="draggable"/>
 </div>
 <div id="bg">
    <img src="final.png"/>
 </div>
</div>

EDIT: Any other approach to achieve this can also be accepted.
Added the JsFiddle example

EDIT: Asad has given nice solution below, but it doesn’t work in IE and Opera. Though this can be achieved by using trigger.
just add this code in Asad’s solution:

 $("#bg").mousedown(function(event){
     $("#draggable").trigger(event);
 }); 

and remove:

pointer-events: none

from CSS. you can find working example here(cross browser): JsFiddle.

Hope this helps some else too 🙂

  • 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-13T06:42:50+00:00Added an answer on June 13, 2026 at 6:42 am

    Here is a working example. I have simply set pointer-events:none; on the bg div and contained image.

    EDIT: As kailash has pointed out below, my original suggestion is more browser compatible, so I am reposting it here for posterity:

    $('#bg').mousedown(function(ev) {
        $('#screen').trigger(ev);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an element in a div, which has a background image. Below the
I have a div container which has a repeating background image that forms a
I should like to have an android app which has its background image on
I have a background on a page body that is an image which I
I have a site that uses a large centered background image, which naturally loads
I have a JPanel which has a background image. To this panel, I add
I have a LinearLayout which has a background image (a 9 patched png file).
I have an <a href=></a> which has a CSS background image. In CSS, I
I have a DIV container which has some text, background-image, image. I need to
I have a shell which has a background image. Within this shell, I have

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.