用於實現廣告過期
<head>
<h
<hr>
<script>
<!
today = new Date() //取得現在的時間
TheDay = new Date(
//如果 today
if (today
{
document
else
{
document
}
//
</script>
<head>
<script>
<!
function showtime()
{
document
TimerID = setTimeout(
}
//
</script>
</head>
<body onLoad=
<Form name=
<input name=
如無效果請刷新
</form>
</body>
其中:setTimeout()函數
TimerID = setTimeout(
通過setTimeout 來刷新時間 間隔
<html>
<head>
<meta http
<title>無標題文檔</title>
<script>
<!
window
//
</script>
</head>
<body>
<a onmouseover=
<a onmouseover=
</body>
</html>
<html>
<head>
<meta http
<script language=
<!
function Redir()
{
a =
TimerID=setTimeout(
}
//
</script>
</head>
<body onload=
我們的網站搬新家了!請單擊下面的超鏈接進入我們的新網站<br>
<a >網頁陶吧</a>
<br>
</body>
</html>
<head>
<script>
<!
var ShowString =
+
+
+
+
+
+
+
+
+
//
var ShowWidth =
var ShowHead =
var ShowTail = ShowWidth
var ShowLength= ShowString
//
function marquee()
{
var DisplayString
if (ShowHead<ShowTail)
DisplayString = ShowString
else
DisplayString = ShowString
+ShowString
//
ShowHead = (ShowHead +
ShowTail = (ShowTail +
//
document
//
TimerID = setTimeout(
}
//
</script>
</head>
<body onload=
<center>
<form name=
<INPUT NAME=
如無效果請刷新
</form>
</center>
</body>
說明:
設置
TimerID = setTimeout(
廣告字幕觸發事件
<body onload=
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/19493.html