求高手改下JavaScript 代码

来源:百度知道 编辑:UC知道 时间:2024/06/01 09:48:05
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<style>
body {
background:black url("C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\115.jpg");
background-repeat: no-repeat;
background-attachment:fixed;
background-position: 50% 100%;}

#t1{
border:1px solid red;
border-collapse:collapse;
}
#t1 TD{
text-align:center;
border:1 solid red;
}
TR{
height:45px
}
</style>
<SCRIPT LANGUAGE="JavaScript">
<!--
function check()
{
if (document.form1.a.value=="")
{
document.getElementById("usernameTip").innerHTML="<B><FONT size=5pt COLOR=red >请输入用户名</FONT></B>";
document.form1.a.focus();
return false;
}
else
document.getEl

document.getElementById("usernameTip").innerHTML="<B><FONT size=5pt COLOR=red >请输入用户名</FONT></B>";
改成:
alert('请输入用户名')
其他那几个类似;

附代码:
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<style>
body {
background:black url("C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\115.jpg");
background-repeat: no-repeat;
background-attachment:fixed;
background-position: 50% 100%;}

#t1{
border:1px solid red;
border-collapse:collapse;
}
#t1 TD{
text-align:center;
border:1 solid red;
}
TR{
height:45px
}
</style>
<SCRIPT LANGUAGE="JavaScript">
<!--
function check()
{
if (document.form1.a.value=="")
{
//document.getElementById("user