Solved

Multiple Div Drag Code

Posted on 2003-11-18
3
436 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
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'…
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…

919 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now