코드 사본은 다음과 같습니다.
<! 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">
<헤드>
<meta http-equiv = "content-type"content = "text /html; charset = utf-8" />
<title> 제목의 문서 </title>
<script language = "javaScript">
Words1 = "환영";
지금 = 새로운 날짜 ()
Words2 = now.tolocalestring ();
플래그 = 0;
기능 플래시 ()
{
if (flag == 0)
{
Window.status = WordS1;
플래그 = 1;
}
또 다른
{
Window.status = Words2;
플래그 = 0;
}
settimeout ( "Flash ()", 2000);
}
</스크립트>
</head>
<body onload = "flash ()">
웹 페이지 컨텐츠
</body>
</html>