spacer
A
b
C
A
b

Bouncing Text

Text "bounces" off a wall by simply sliding the text and then flipping the direction when the text is about to exceed the limit. One quirk I encountered while writing this example is that when changing the text in a DIV, netscape is quite sensitive to how you format it. For example, I had to use <p style='color: orange; font: bold 14pt arial;'>A</p> ; using another element like SPAN or changing the order of color and font simply wouldn't work right.

Most code that actually does the is in the file js_libc.js. See the index for tips on how to use this code.

DHTML HowTo/Demos


In this section:
  • Back to the front page of this section: DHTML main.

Hosted by www.Geocities.ws

1