问题是这样的这是一个跑马灯的效果,在IE浏览器下正常,可是放在火狐浏览器下就出现问题,请论坛的大牛们帮忙解决一下!
<%
MM_yuhua_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath( "buyer/uploadimage/database/fdsa#ffadl.mdb")
set rs=server.CreateObject("adodb.recordset")
%>
<html>
<!-- scroll.htm [XR&CO'2007], Wed, 26 Dec 2007 09:03:51 GMT -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<SCRIPT language=JavaScript>
<!--
//
var x = 0;
var y = 0;
var limdex = 763; //这个值取决于下面表格宽度的1/2 这是1560的一半
var dest = 0;
var distance = 0;
var step = 0;
var destination = 0;
var on = true;
function scrollit(destination)
{
step = 2;
dest = destination;
if (x<dest & x < limdex){
while (x<dest) {
step += (step / 7);
x += step;
scroll(x,0);
} // top.main.scroll(dest,0);
if(dest <=limdex) { scroll(dest,0); }
x = dest;
}
if (x > dest) {
while (x>dest) {
step += (step / 7);
if(x >= (0+step)) { x -= step; scroll(x,0); }
else break;
}
if(dest >= 0) {scroll(dest,0); }
x = dest;
}
if (x<1) {scroll(1,0); x=1 }
if (x>limdex) {scroll(limdex,0); x=limdex }
x = dest;
}
function scrollnow() { if (on){ if (x < limdex & x >= 0 ) { scroll(x,0); x = x + 1; setTimeout('scrollnow()', 20); } else if (x < 0) { x = limdex; scrollnow(); } else { x=0; scrollnow(); } }
}
// *********************************
// 去掉原来的stopscroll()
function stopscroll() { if (on){ on = false; } else { on = true; scrollnow(); }
}
function startscroll() { on = true; scrollnow(); }
function stop_start() {
if (on){ on = false;}else { on = true;scrollnow();}
}
file://***********************************
function MM_callJS(jsStr) { file://v2.0
return eval(jsStr)
}
file://-->
</SCRIPT>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #1D6F1F;
}
td {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
line-height: 18px;
color: #4E1F00;
}
-->
</style></head>
<body onLoad="MM_callJS('startscroll()')">
<table width="1526" border="0" cellspacing="10" cellpadding="0">
<tr>
<td width="86" align="center"><img src="images/p01.JPG" width="86" height="85"></td>
<td width="86" align="center"><img src="images/p02.JPG" width="86" height="85"></td>
<td width="86" align="center"><img src="images/p03.JPG" width="86" height="85"></td>
<td width="86" align="center"><img src="images/p04.JPG" width="86" height="85"></td>
<td width="86" align="center"><img src="images/p05.JPG" width="86" height="85"></td>
<td width="86" align="center"><img src="images/p06.JPG" width="86" height="85"></td>
<td width="86" align="center"><img src="images/p07.JPG" width="86" height="85"></td>
<td width="86" align="center"><img src="images/p08.JPG" width="86" height="85"></td>
<td width="86" align="center"><img src="images/p01.JPG" width="86" height="85"></td>
<td width="86" align="center"><img src="images/p02.JPG" width="86" height="85"></td>
<td width="86" align="center"><img src="images/p03.JPG" width="86" height="85"></td>
<td width="86" align="center"><img src="images/p04.JPG" width="86" height="85"></td>
<td width="86" align="center"><img src="images/p05.JPG" width="86" height="85"></td>
<td width="86" align="center"><img src="images/p06.JPG" width="86" height="85"></td>
<td width="86" align="center"><img src="images/p07.JPG" width="86" height="85"></td>
<td width="86" align="center"><img src="images/p08.JPG" width="86" height="85"></td>
</tr>
</table>
</body>
<!-- scroll.htm [XR&CO'2007], Wed, 26 Dec 2007 09:04:08 GMT -->
</html>
关于HTML和火狐浏览器的问题
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
4条回答 默认 最新
- 86y 2011-02-15 12:03关注
晕。
1、我看你那数据库链接也没有多大用处,你页面的数据都是静态的。把<%%>删除了吧!
2、asp代码一定要把后缀名改成.asp的然后在iis里面设置好了就可以用iis运行了!本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 求差集那个函数有问题,有无佬可以解决
- ¥15 MATLAB动图问题
- ¥15 【提问】基于Invest的水源涵养
- ¥20 微信网友居然可以通过vx号找到我绑的手机号
- ¥15 寻一个支付宝扫码远程授权登录的软件助手app
- ¥15 解riccati方程组
- ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
- ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
- ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
- ¥50 树莓派安卓APK系统签名