一个流动文字的例子
<!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=gb2312" />
<title>最新招商合作信息</title>
</head>
<body>
<table width="750" height="120" border="1" cellpadding="1" cellspacing="0" bordercolor="#FE00FF">
<tr>
<td width="400">
<marquee direction=up bihavior=scroll loop="-1" scrollamount="1" HEIGHT="50" width="396"
onmouseover=this.stop() onmouseout=this.start()>
<div align="life">
<a href="1">项目:忻定原盆地温泉度假旅游区 </a><br>
<a href="2">项目:龟山闫锡山西汇别墅
</a><BR>
<a href="3">安心生理内衣诚招各地高校代理
</a><BR>
</div></span>
</marquee>
</td>
</tr>
</table>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>最新招商合作信息</title>
</head>
<body>
<table width="750" height="120" border="1" cellpadding="1" cellspacing="0" bordercolor="#FE00FF">
<tr>
<td width="400">
<marquee direction=up bihavior=scroll loop="-1" scrollamount="1" HEIGHT="50" width="396"
onmouseover=this.stop() onmouseout=this.start()>
<div align="life">
<a href="1">项目:忻定原盆地温泉度假旅游区 </a><br>
<a href="2">项目:龟山闫锡山西汇别墅
</a><BR>
<a href="3">安心生理内衣诚招各地高校代理
</a><BR>
</div></span>
</marquee>
</td>
</tr>
</table>
</body>
</html>
网页上时间的显示 js
<SCRIPT language=JavaScript>
today=new Date();
function initArray()
{
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i]
}
var d=new initArray
(
"星期日",
"星期一",
"星期二",
"星期三",
"星期四",
"星期五",
"星期六"
);
document.write(
"<font color=blue> ",
today.getYear(),"年",
today.getMonth()+1,"月",
today.getDate(),"日 ",
d[today.getDay()+1],
"</font>"
);
</SCRIPT>
today=new Date();
function initArray()
{
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i]
}
var d=new initArray
(
"星期日",
"星期一",
"星期二",
"星期三",
"星期四",
"星期五",
"星期六"
);
document.write(
"<font color=blue> ",
today.getYear(),"年",
today.getMonth()+1,"月",
today.getDate(),"日 ",
d[today.getDay()+1],
"</font>"
);
</SCRIPT>