<html> <head><title>Red and Yellow</title> <style type="text/css"> <!-- div#box { width: 200px; height: 100px; background-color: yellow; } --> </style> </head> <body> <p>マウスを入れると赤、出すと黄色。</p> <div id="box" onmouseover="red();" onmouseout="yellow();"> </div> <script type="text/javascript" src="redyellow.js"> </script> </body> </html>