SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Feb 2007
    Posts
    873
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Jquery image swapping

    Dear All,
    I got a page here http://183.78.169.53/tyre2/page2.html. What I would like to do is enable swapping between the black images? I would like to drag and drop to another image and that image will fill up the dragged earlier image position? Any idea?

  2. #2
    SitePoint Member
    Join Date
    Apr 2011
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well you're first going to need some drag and drop functionality.

    HTML5 Rocks - Native HTML5 Drag and Drop
    jQuery UI - Demos & Documentation

    After that, it's just about replacing the src of the element (that's the easy part).

  3. #3
    SitePoint Guru
    Join Date
    Feb 2007
    Posts
    873
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dear Mike,
    HTML5 looks great but guess you need proper browser to support it right? Another thing I have got a swap thing working via jquery will get back to you incase I got stuck. Thank you.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •