JavaScript Samples


bgchange.js

Changes the background color at random.

  1. With the left mouse button, drag this file from Gallery view.
  2. Drop it at any place within the edit area.

This sample does not work if you insert it in the document header.


lastupdt.js

Displays the most recently updated time and date of a document. For example:
"Last updated: 02/15/99 20:07:38"

  1. With the left mouse button drag this file from Gallery view.
  2. Drop it where you want to display the most recently updated time and date.

scroll.js

Displays a scrolling message in the browser status bar.

  1. With the right mouse button drag this file from Gallery view.
  2. Drop it at any place within the edit area.
    --> A shortcut menu is displayed.
  3. Select [Extract into Page Header].

To change the scrolling text, do the following:

  1. Select [Edit]-[Page Properties] from the menu bar.
    --> The "Attributes" dialog is displayed.
  2. Click on the [Others] tab, and then click on [Edit Script].
  3. Change the text "Hello...".