Down load this script.
(If the script appears, select Save as.. or something like that.)
Include it to your html file.
before include -> after include
It is better to include the script in the place surrounded by <head>.
If you want to do fadein,
uncomment the line in the fadein function.
do the fadein
If you want to do fadeout,
The first, uncomment the line in the fadeout function.
Then, you have to add a parameter to <body> tag.
Add parameter onUnLoad="fadeout()" to inside the <body> tag.
Original line is here.
After add parameter is here.
<body bgcolor="#ffffff" onUnLoad="fadeout()">
do the fadeout
fadein fadeout both
(c) 1996-2000 Kouichirou Eto, created at 1996/03/03