Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms

RESTRICTED AREA JAVASCRIPT OBJECT

This object makes an xlayer continuously move within a specified left, right, top and bottom position at a certain speed. 4 events can be captured, which are called when the layer hits one of the 4 sides of the document.

Press the stop and start buttons to start or stop the blue layer from moving. Change the speed to change the speed at which the layer moves. Note in this demonstration the layer's text changes according to what margin the layer hit.

Speed

The object is fully customizable, the following attributes can be set:

  1. Events to capture: left, right, top and bottom margin hit,
  2. moving Speed
  3. The top and bottom margins for the layer must be kept inside.
  4. Ability to stop the layer from moving
Change appearance of layer be using xLayer's methods

Code!


xLayer in Action| Fixed Position Javascript Object| Toolbar Object| Menu Object| Restricted Area Object| Animated Button Object| Drag Object| Internal Frame Object| Number Mask Object| Sound Object

You may use this javascript for free!
Home