JavaScript Samples
bgchange.js
Changes the background color at random.
- With the left mouse button, drag this file
from Contents pane.
- 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"
- With the left mouse button drag this file
from Contents pane.
- 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.
- With the right mouse button drag this file from Contents pane.
- Drop it at any place within the edit area.
--> A shortcut menu is displayed.
- Select [Insert in the Document Header].
To change the scrolling text, do the following:
- Select [Edit]-[Document Properties] from
the menu bar.
--> The "Document Properties"
dialog is displayed.
- Click on the [Others] tab, and then click
on [Edit Script].
- Change the text in the second line ("Hello,
...").