JavaScript Samples


bgchange.js

Changes the background color at random.

  1. With the left mouse button, drag this file from Contents pane.
  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 Contents pane.
  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 Contents pane.
  2. Drop it at any place within the edit area.
    --> A shortcut menu is displayed.
  3. Select [Insert in the Document Header].

To change the scrolling text, do the following:

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