Javascript Div Help

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
shoxlx
Forum Newbie
Posts: 23
Joined: Tue Oct 11, 2005 10:42 pm

Javascript Div Help

Post 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>
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

Moved to client side
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

you could create a 'parent' div and then use innerHTML to rewrite all of the 'children' based on user input.
Post Reply