Solved

Multiple Div Drag Code

Posted on 2003-11-18
3
456 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…
Suggested Courses

636 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