1. Home
  2. Computing & Technology
  3. JavaScript

Rotating Object

1. Introduction and Sample

clr gif
Join the Discussion

Questions? Comments?

More of this Feature

The Script Identify Object

Would you like to add some motion to your web page? One way that something can be in constant motion on your page without disappearing off the screen is if it moves in a circle.

This page has a small image set to rotate continuously around the centre of the browser window. You can scroll the page and the rotation continues unaffected. If you resize the window the image repositions itself and starts rotating within the new window area.

Of course the image you want to set rotating may be a completely different size from mine or you may not want to use an image at all. Maybe you want to set a section of text (even an ad) rotating around the page. You can set the content of the rotating object to whatever you want.

If this is what you are looking for then the first thing you need to do is to get the script.

Introduction | The Script | Identify Object
Explore JavaScript
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. JavaScript

©2009 About.com, a part of The New York Times Company.

All rights reserved.