看看这个网站www.baibook.net/new
做的是一个快递单号的搜索系统
实现功能:选择快递公司,输入单号,点查询,连接到相应快递公司查询结果页面
现在已经做好了2个,其他的不会了
这段程序供大家参考,他就是把框居中后不正确了
<html><head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>欢迎使用you20快递搜索</title></head><body style="margin-top:200;margin-left:10;"> <!--webbot bot="SaveResults" U-File="C:\Documents and Settings\Administrator\桌面\_private\form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" --><script>
function go(){
var sel1=document.getElementById("sel1").value;
var txt1=document.getElementById("txt1").value;
window.open(sel1+txt1,"1")
}
</script>
<select id="sel1" style="float:left;align;text-align:center;">
<option>选择快递公司</option>
<option value="http://www.sto.cn/querybill/webform1.aspx?wen=" selected>申通快递</option>
<option value="http://www.yto56.net.cn/html/sql.asp?numbertext=">圆通快递</option>
<option value="http://www.zto.cn/bill.asp">中通快递</option>
<option value="sf">顺丰快递</option>
</select>
<div id="nor" style="float:left;">
<input type="text" id="txt1" style="color:gray;" onClick="this.value='';this.style.color='#000000'" value="请输入快递单号" size="31">
<input type="button" value="提交" onClick="go()">
</div>
<div id="div_sf" style="display:none;float:left;">
<form action="http://www.sf-express.com/sfwebapp/result.jsp" method="post" target="_blank">
<input type="text" value="" name="tracklist">
<img alt="验证码图片,根据你看到的数字填到右边的输入框中。" src="http://www.sf-express.com/sfwebapp/getCheckImg" align="absmiddle"/>
验证码:<input type="text" class="input23" name="checkimg" size=4 />
<input type="submit" value=" 提交 " >
</form>
</div>
<script language="javascript">
var sel1=document.getElementById("sel1"); sel1.onchange=function(){
var n= document.getElementById("nor");var div_sf=document.getElementById("div_sf");
if(sel1.value&&sel1.value=="sf"){
n.style.display="none"
div_sf.style.display="";
}
else{
n.style.display=""
div_sf.style.display="none";
}
}
</script></body></html>
做的是一个快递单号的搜索系统
实现功能:选择快递公司,输入单号,点查询,连接到相应快递公司查询结果页面
现在已经做好了2个,其他的不会了
这段程序供大家参考,他就是把框居中后不正确了
<html><head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>欢迎使用you20快递搜索</title></head><body style="margin-top:200;margin-left:10;"> <!--webbot bot="SaveResults" U-File="C:\Documents and Settings\Administrator\桌面\_private\form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" --><script>
function go(){
var sel1=document.getElementById("sel1").value;
var txt1=document.getElementById("txt1").value;
window.open(sel1+txt1,"1")
}
</script>
<select id="sel1" style="float:left;align;text-align:center;">
<option>选择快递公司</option>
<option value="http://www.sto.cn/querybill/webform1.aspx?wen=" selected>申通快递</option>
<option value="http://www.yto56.net.cn/html/sql.asp?numbertext=">圆通快递</option>
<option value="http://www.zto.cn/bill.asp">中通快递</option>
<option value="sf">顺丰快递</option>
</select>
<div id="nor" style="float:left;">
<input type="text" id="txt1" style="color:gray;" onClick="this.value='';this.style.color='#000000'" value="请输入快递单号" size="31">
<input type="button" value="提交" onClick="go()">
</div>
<div id="div_sf" style="display:none;float:left;">
<form action="http://www.sf-express.com/sfwebapp/result.jsp" method="post" target="_blank">
<input type="text" value="" name="tracklist">
<img alt="验证码图片,根据你看到的数字填到右边的输入框中。" src="http://www.sf-express.com/sfwebapp/getCheckImg" align="absmiddle"/>
验证码:<input type="text" class="input23" name="checkimg" size=4 />
<input type="submit" value=" 提交 " >
</form>
</div>
<script language="javascript">
var sel1=document.getElementById("sel1"); sel1.onchange=function(){
var n= document.getElementById("nor");var div_sf=document.getElementById("div_sf");
if(sel1.value&&sel1.value=="sf"){
n.style.display="none"
div_sf.style.display="";
}
else{
n.style.display=""
div_sf.style.display="none";
}
}
</script></body></html>
LZ居中的CSS的确是不符合语法的,
float:left;align;text-align:center;">