Moving (All)

You can make many kinds of animation with DHTML. I want to show you some of them. These animation effects are very useful. You can make a simple game with these animation function. Ok, let's make animation.

Diagonal Animation

This animation is very easy. Just put y's moving script to last chapter's animation. Here is code.

  function animation() {	if (moving.xpos < 200) {		moving.xpos += 5		moving.ypos += 3		moving.left = moving.xpos		moving.top = moving.ypos		setTimeout ("animation()",25)	}  }  

It is easy, isn't it? Here is the example.

Other Animation

Other animations are very hard to make. You need to define all things, because DTHML support only left and top position. If you want to know other animations, send me mail. I'll send you many other animation.

Back to home.