コードコピーは次のとおりです。
<!doctype html public " - // w3c // dtd xhtml 1.0 transitional // en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<Meta http-equiv = "content-type" content = "text /html; charset = utf-8" />
<title> un unt ittitled document </title>
<スクリプト言語= "javascript">
words1 = "welcome";
now = new date()
words2 = now.tolocalestring();
フラグ= 0;
functionflash()
{
if(flag == 0)
{
window.status = words1;
フラグ= 1;
}
それ以外
{
window.status = words2;
フラグ= 0;
}
setimeout( "flash()"、2000);
}
</script>
</head>
<body onload = "flash()">
Webページのコンテンツ
</body>
</html>