写了个程序,在本地运行一切正常,在服务器运行以后,能弹出页面,但是原来的页面突然变成“该网页无法显示”请教各为高手了,内容见附件网页,服务器上运行的地址是:http://www.jztang.com/cxy/text.html具体网页的代码如下:
==================================================================================================
<!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=utf-8" />
<title>无标题文档</title>
<script language="javascript">function sear()
{ var in_value=fsearch.inner.value;
var choiceValue ;
var len = fsearch.choice.length;
for(i=0;i<=len;i++)
{
if(fsearch.choice[i].checked)
{
choiceValue = fsearch.choice[i].value ;
break;
}
}
// alert(choiceValue);
// alert (in_value);
switch (choiceValue)
{
case "baidu": window.open("http://www.baidu.com/s?tn=df568&word="+in_value)
break;
case "baidu_mp3": window.open("http://mp3search.baidu.com/wstsearch?tn=baidump3&ct=134217728&lm=-1&rn=&word="+in_value)
break;
case "baidu_image": window.open("http://www.baidu.com/i?ct=201326592&cl=2&lm=-1&tn=baiduimage&word="+in_value)
break;
case "google": window.open("http://www.google.cn/search?hl=zh-CN&q="+in_value)
break;
case "docu": window.open("http://www.baidu.com/baidu?ft=all&q1="+in_value)
break;
case "soft": window.open("http://dict.cn/search/?q="+in_value)
break;
case "yahoo": window.open("http://cn.search.yahoo.com/search?p="+in_value)
break;
case "sogou": window.open("http://www.sogou.com/web?query="+in_value)
break;
case "shipin": window.open("http://video.baidu.com/v?word="+in_value)
break;
case "news": window.open("http://www.gougou.com/search?id=2834&search="+in_value)
break;
case "flash": window.open("http://so.163.com/search?q="+in_value)
break;
}
}</script></head><body>
<table width="778" height="45" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#3DBBBE" bgcolor="#FFFFFF">
<tr>
<td ><div align="center">
<table class="tb2" id="table6" cellspacing="0" cellpadding="0">
<form action="" method="post" name="fsearch" id="fsearch">
<tr align="center">
<td width="103" style="font-size: 9pt"><a target="_blank" href="http://www.baidu.com/"><img src="images/la.gif" width="103" height="35" border="0" /></a></td>
<td width="366" style="font-size: 9pt"><input name="choice" type="radio" value="baidu" checked="checked" />
百度
<input type="radio" name="choice" value="baidu_mp3" />
百度MP3
<input type="radio" name="choice" value="baidu_image" />
百度图片
<input type="radio" name="choice" value="google" />
Google
<input type="radio" name="choice" value="docu" />
互联星空章
<input type="radio" name="choice" value="soft" />
爱问
<input type="radio" name="choice" value="yahoo" />
雅虎
<input type="radio" name="choice" value="sogou" />
搜狗
<input type="radio" name="choice" value="shipin" />
中搜
<input type="radio" name="choice" value="news" />
搜搜
<input type="radio" name="choice" value="flash" />
网易</td>
<td width="179" style="font-size: 9pt"><input name="inner" id="inner" style="background-color: #D2FFA6; color: #008040; font-size: 9pt; border: 1px solid" onfocus="this.select()" onblur="if (value ==''){value='军民e家'}" onclick="if(this.value=='军民e家')this.value=''" onmouseover="this.style.backgroundColor='#F0FFE1';this.focus()" onmouseout="this.style.backgroundColor='#D2FFA6'" value="军名e家" size="25" />
</td>
<td width="50" height="30" align="center" style="font-size:" 9pt;><input name="image" type="image" src="images/s.gif" align="middle" border="0" onclick="sear();" />
</td>
<td width="56" style="font-size: 9pt"> </td>
</tr>
</form>
</table></td>
</tr>
</table>
</body>
</html>==================================================================================================
==================================================================================================
<!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=utf-8" />
<title>无标题文档</title>
<script language="javascript">function sear()
{ var in_value=fsearch.inner.value;
var choiceValue ;
var len = fsearch.choice.length;
for(i=0;i<=len;i++)
{
if(fsearch.choice[i].checked)
{
choiceValue = fsearch.choice[i].value ;
break;
}
}
// alert(choiceValue);
// alert (in_value);
switch (choiceValue)
{
case "baidu": window.open("http://www.baidu.com/s?tn=df568&word="+in_value)
break;
case "baidu_mp3": window.open("http://mp3search.baidu.com/wstsearch?tn=baidump3&ct=134217728&lm=-1&rn=&word="+in_value)
break;
case "baidu_image": window.open("http://www.baidu.com/i?ct=201326592&cl=2&lm=-1&tn=baiduimage&word="+in_value)
break;
case "google": window.open("http://www.google.cn/search?hl=zh-CN&q="+in_value)
break;
case "docu": window.open("http://www.baidu.com/baidu?ft=all&q1="+in_value)
break;
case "soft": window.open("http://dict.cn/search/?q="+in_value)
break;
case "yahoo": window.open("http://cn.search.yahoo.com/search?p="+in_value)
break;
case "sogou": window.open("http://www.sogou.com/web?query="+in_value)
break;
case "shipin": window.open("http://video.baidu.com/v?word="+in_value)
break;
case "news": window.open("http://www.gougou.com/search?id=2834&search="+in_value)
break;
case "flash": window.open("http://so.163.com/search?q="+in_value)
break;
}
}</script></head><body>
<table width="778" height="45" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#3DBBBE" bgcolor="#FFFFFF">
<tr>
<td ><div align="center">
<table class="tb2" id="table6" cellspacing="0" cellpadding="0">
<form action="" method="post" name="fsearch" id="fsearch">
<tr align="center">
<td width="103" style="font-size: 9pt"><a target="_blank" href="http://www.baidu.com/"><img src="images/la.gif" width="103" height="35" border="0" /></a></td>
<td width="366" style="font-size: 9pt"><input name="choice" type="radio" value="baidu" checked="checked" />
百度
<input type="radio" name="choice" value="baidu_mp3" />
百度MP3
<input type="radio" name="choice" value="baidu_image" />
百度图片
<input type="radio" name="choice" value="google" />
<input type="radio" name="choice" value="docu" />
互联星空章
<input type="radio" name="choice" value="soft" />
爱问
<input type="radio" name="choice" value="yahoo" />
雅虎
<input type="radio" name="choice" value="sogou" />
搜狗
<input type="radio" name="choice" value="shipin" />
中搜
<input type="radio" name="choice" value="news" />
搜搜
<input type="radio" name="choice" value="flash" />
网易</td>
<td width="179" style="font-size: 9pt"><input name="inner" id="inner" style="background-color: #D2FFA6; color: #008040; font-size: 9pt; border: 1px solid" onfocus="this.select()" onblur="if (value ==''){value='军民e家'}" onclick="if(this.value=='军民e家')this.value=''" onmouseover="this.style.backgroundColor='#F0FFE1';this.focus()" onmouseout="this.style.backgroundColor='#D2FFA6'" value="军名e家" size="25" />
</td>
<td width="50" height="30" align="center" style="font-size:" 9pt;><input name="image" type="image" src="images/s.gif" align="middle" border="0" onclick="sear();" />
</td>
<td width="56" style="font-size: 9pt"> </td>
</tr>
</form>
</table></td>
</tr>
</table>
</body>
</html>==================================================================================================
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货