Solved

Multiple Div Drag Code

Posted on 2003-11-18
3
438 Views
Last Modified: 2008-03-10
Most of the code I've found is only for one Div and if it does support more it usually does more than I need it to such as resizing and maximizing.. Anyone know where I can find code to just be able to drag around multiple divs? thanks
0
Comment
Question by:dgelinas
3 Comments
 
LVL 11

Expert Comment

by:Zontar
ID: 9771033
Why does everyone insist on using divs for such things when it's possible to work with nearly any element (img, table, ul, etc., I've used all of these in different circumstances)  in such a fashion in modern browsers?

At any rate, it's just a matter of deciding how you wish to identify the group elements to be "activated". For example, you can give them id attributes which have a common substring unique to the group, or give them a common style class that's not used with any other elements. One can also hard-code an array of element id's... Then where the initialisation code acts on a single element, you write a loop and call the function or functions with each of the element id's in turn. Post some code you like and I'll show you how to adapt it.
0
 
LVL 10

Expert Comment

by:Nushi
ID: 9771172
>>just be able to drag around multiple divs

look at the main page of:
http://dhtmlcentral.com

what you will see there is few windows that can be dragged.
the code is available for free download from teh site.

Nushi.
0
 
LVL 16

Accepted Solution

by:
jaysolomon earned 250 total points
ID: 9771265
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

805 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question