8.7w+
社区成员
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>test</title>
<style type="text/css">
<!--
.style1 {font-size: 13px}
.style2 {
font-size: 12px;
color: #FF0000;
}
.style3 {font-size: 12px}
-->
</style>
</head>
<script language="javascript">
function checkURL(URL){
var str=URL;
//下面的代码中应用了转义字符"\"输出一个字符"/"
var Expression=/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/;
var objExp=new RegExp(Expression);
if(objExp.test(str)==true){
return true;
}else{
return false;
}
}
</script>
<script language="javascript">
function checkform1(){
var uucs=form1.uucs.value;
if(uucs==""){
alert("请输入个人主页地址!");
document.form1.uucs.focus();
return false;
}else{
if(!checkURL(uucs)){
alert("您输入的个人主页地址不合法!");
document.form1.uucs.focus();
return false;
}
}
return true;
}
</script>
</head>
<body>
<table width="450" border="1" cellpadding="0" cellspacing="0" background="images/sss.JPG">
<form name="form1" enctype="multipart/form-data" method="post" action="eecdss.php" onSubmit="return checkform1()"> <tr align="center">
<td height="24" colspan="2" class="style1">验证网址 </td>
</tr>
<tr>
<td height="20" align="center" class="style1">个人空间: </td>
<td class="style3"> <input type="text" name="uucs" id="uucs" size="30" maxlength="50" value="http://">
<span class="style2"> * 请输入正确的个人空间地址 </span> </td>
</tr>
<tr>
<td height="24" align="center"> </td>
<td class="style3"> <input type="submit" value="提交" name="Submit">
<span class="style2"> (*为必填项目) </span> <input type="reset" name="Submit2" value="重置">
</td>
</tr>
</form>
</table>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>test</title>
<style type="text/css">
<!--
.style1 {font-size: 13px}
.style2 {
font-size: 12px;
color: #FF0000;
}
.style3 {font-size: 12px}
-->
</style>
</head>
<script language="javascript">
function checkURL(URL){
var str=URL;
//下面的代码中应用了转义字符"\"输出一个字符"/"
var Expression=/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/;
var objExp=new RegExp(Expression);
if(objExp.test(str)==true){
return true;
}else{
return false;
}
}
</script>
<script language="javascript">
function checkform1(){
var uucs=form1.uucs.value;
if(uucs==""){
alert("请输入个人主页地址!");
document.form1.uucs.focus();
return false;
}else{
if(!checkURL(uucs)){
alert("您输入的个人主页地址不合法!");
document.form1.uucs.focus();
return false;
}
}
form1.submit();
}
</script>
</head>
<body>
<table width="450" border="1" cellpadding="0" cellspacing="0" background="images/sss.JPG">
<form name="form1" enctype="multipart/form-data" method="post" action="eecdss.php"> <tr align="center">
<td height="24" colspan="2" class="style1">验证网址 </td>
</tr>
<tr>
<td height="20" align="center" class="style1">个人空间: </td>
<td class="style3"> <input type="text" name="uucs" id="uucs" size="30" maxlength="50" value="http://">
<span class="style2"> * 请输入正确的个人空间地址 </span> </td>
</tr>
<tr>
<td height="24" align="center"> </td>
<td class="style3"> <input type="button" value="提交" name="Submit" onclick="checkform1()">
<span class="style2"> (*为必填项目) </span> <input type="reset" name="Submit2" value="重置">
</td>
</tr>
</form>
</table>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>验证网址 </title>
<style type="text/css">
<!--
.style1 {font-size: 13px}
.style2 {
font-size: 12px;
color: #FF0000;
}
.style3 {font-size: 12px}
-->
</style>
</head>
<script language="javascript">
function checkURL(URL){
var str=URL;
//下面的代码中应用了转义字符"\"输出一个字符"/"
var Expression=/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/;
var objExp=new RegExp(Expression);
if(objExp.test(str)==true){
return true;
}else{
return false;
}
}
</script>
<script language="javascript">
function checkform1(){
var uucs=form1.uucs.value;
if(uucs==""){
alert("请输入个人主页地址!");
document.form1.uucs.focus();
return false;
}else{
if(!checkURL(uucs)){
alert("您输入的个人主页地址不合法!");
document.form1.uucs.focus();
return false;
}
}
form1.submit();
}
</script>
<body>
<table width="450" border="1" cellpadding="0" cellspacing="0" background="images/sss.JPG">
<form name="form1" method="post" action="eecdss.php"> <tr align="center">
<td height="24" colspan="2" class="style1">验证网址 </td>
</tr>
<tr>
<td height="20" align="center" class="style1">个人空间: </td>
<td class="style3"> <input name="uucs" type="text" id="uucs" size="20" maxlength="70">
<span class="style2"> * 请输入正确的个人空间地址 </span> </td>
</tr>
<tr>
<td height="24" align="center"> </td>
<td class="style3"> <input type="button" name="Submit" value="提交" onClick="return checkform1();">
<span class="style2"> (*为必填项目) </span> <input type="reset" name="Submit2" value="重置">
</td>
</tr>
</form>
</table>
</body>
</html>