Page 1 of 1

Javascript Div Help

Posted: Sun Dec 18, 2005 3:57 pm
by shoxlx
is their a javascript or css to allow someone to change the order of a div.

ex.

<div name=1></div>
<div name=2></div>
<div name=3></div>

when a user press move up div 3 will switch with div 2 and so on and so forth.

<div name=1></div>
<div name=3></div>
<div name=2></div>

Posted: Sun Dec 18, 2005 4:02 pm
by Burrito
Moved to client side

Posted: Sun Dec 18, 2005 4:04 pm
by Burrito
you could create a 'parent' div and then use innerHTML to rewrite all of the 'children' based on user input.