demonstration of a horizontal moving div tag (if I understood the spec correctly)







It is not easy at all to make a smooth transition between the ends of the div tag, because there needs to be yet another div tag there, and where is it going to come from? you have to change the content of the outer div using .innerHTML to swap the 2 inner DIV tags around, which means taking the whole content of the div tags and storing them as strings.
This is GPL'd code. go ahead and view source.