Jump to content
Sign in to follow this  
Sunamena

Drag immage do this

Recommended Posts

I failed to find an example of something specific i am looking for.


This is what i want: 


<img src="a.jpg" id="1"> <img src="a.jpg" id="2"> <img src="a.jpg" id="3"> 

<img src="b.jpg" id="dragable-1"> <img src="b.jpg" id="dragable-2"> 

When a draggable image (as seen in the ID), gets dragged onto another image i want this to happen:

<a href="mylink.php?draggable=IDDRAGGABLE1&to=IDOFTHEIMMAGEITGOTDROPPEDINTO"></a>


Can i find any tutorial on this?
Is this difficult?


Thanks in advance =D

Share this post


Link to post
Share on other sites

You want what to happen, an anchor to get created or edited or something?

Like with most things, instead of finding something that tells you exactly how to do specifically what you want to do, you need to understand the basics and the theory yourself so that you can apply that to build what you want.  You can start here, but there's a lot more information online about dragging and dropping.

https://www.w3schools.com/html/html5_draganddrop.asp

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...