日期:2014-05-16 浏览次数:20570 次


<Script> document.bgColor = "white"; document.fgColor = "black"; document.linkColor = "red"; document.alinkColor = "blue"; document.vlinkColor = "purple"; </Script> 测试文件对象的颜色属性:<BR> <A HREF="http://www.google.com.hk">Google</A>
<Script>
var update_date = document.lastModified;
var formated_date = update_date.substring(0,10);
document.write("本网页更新日期:" + update_date + "<BR>")
document.write("本网页更新日期:" + formated_date)
</Script>
 大侠们讲讲呗

<Script>
function linkGetter() {
msgWindow = open('','','width=250,height=200')
msgWindow.document.write("共有" + document.links.length + "个搜索引擎")
for (var i = 0; i < document.links.length; i++) {
    msgWindow.document.write("<LI>"+document.links[i])
}
}
</Script>
常用的搜索引擎:<BR>
<A HREF="http://www.Google.com.hk/">Google</A>
<A HREF="http://www.Baidu.com/">百度</A>
<A HREF="http://cn.bing.com/">必应</A><BR>
<INPUT TYPE="button" VALUE="网址一览" onClick=linkGetter()>
<Script>
document.title = "框架组页";
var usrID = "来宾";
</Script>
<FRAMESET COLS="20%,80%">
    <FRAME SRC="menu.htm" NAME=leftFrame>
    <FRAMESET ROWS="10%,90%">
        <FRAME SRC="usrInfo.htm" NAME=upFrame>
        <FRAME SRC="welcome.htm" NAME=downFrame>
    </FRAMESET>
</FRAMESET>
<HEAD>
<TITLE>导航页</TITLE>
<STYLE>A{text-decoration:none}</STYLE>
</HEAD>
<BODY>
<CENTER>
<A HREF="login.htm" TARGET="downFrame">会员登录</A><BR>
<A HREF="hot.htm" TARGET="downFrame">热门优惠</A><BR>
<A HREF="welcome.htm" TARGET="downFrame">回 首 页</A>
<BR>
</CENTER>
</BODY><Script>
document.title = "用户信息";
var bye = "欢迎有空常来..."
document.write
("<MARQUEE>亲爱的<FONT COLOR='gray'><U>",top.usrID,"</U></FONT>会员,欢迎您的光临!</MARQUEE>");
</Script><Script>
document.title = "用户登录";
function login() {
    top.usrID = document.loginForm.usr.value;
    top.upFrame.location = "usrInfo.htm";
}
&