www.webdeveloper.com
Results 1 to 6 of 6

Thread: drag'n'drop div

  1. #1
    Join Date
    Sep 2009
    Posts
    5

    drag'n'drop div

    hi guys

    I have found a js script that allows to drag and drop a div popup:
    http://www.dynamicdrive.com/dynamicindex11/abox.htm

    problem is that the divs ids needs to be writen in the script but I they will be generated automaticly by the php script so I don't even know how much of them it will be.
    do You know any script that allows to drag'n'drop divs without known id?
    or do You have any idea how can I write them latter, not in js script in itself?

  2. #2
    Join Date
    Oct 2006
    Posts
    939
    The script I pull out to use, identifies the class.
    Any object of a certain class will drag.

  3. #3
    Join Date
    Jul 2008
    Location
    urbana, il
    Posts
    2,787
    does that mean that you found what you needed?

  4. #4
    Join Date
    Sep 2009
    Posts
    5
    yep.
    so maybe you know how can I close a group of div's using this script?
    let say that they are called div[1], div[2] etc..

  5. #5
    Join Date
    Sep 2009
    Posts
    5
    other problem is when I want to call div's onload:
    <body onload="popup_show('contact', 'contact_drag', 'contact_exit3'); popup_show('about', 'about_drag', 'about_exit2');">

    just the first one is avaiable to drag.
    why?

  6. #6
    Join Date
    Sep 2009
    Posts
    5
    ??
    Last edited by drink86; 09-07-2009 at 12:12 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles