horizontal scrolling div

 

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

peanut butter cookiem and m cookiechocolate chunk cookiemacadamia white chocolate cookieoatmeal raisin cookiechocolate chunk cookieGhirardelli chocolate chip cookie recipe cookie with extra cup of flour - yum!

 
 
 

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.