asp错误:参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。
<tdcolspan="4"><<styletype="text/css">div.image{background-color:#EFF6FE;}div.scroll{...
<td colspan="4"><<style type="text/css">
div.image{background-color:#EFF6FE;}
div.scroll{margin:10px;width:790px;height:100%;overflow:hidden;background-color:#00FF00;}
div.scroll table{left:0px;width:100%;position:relative;}
div.scroll table td{white-space:nowrap;}
div.scroll table td img{height:100px;margin:0px 5px;border:0px;}
</style>
<div class="image">
<div class="scroll" onmouseover="clearInterval(timer);" onmouseout="timer = setInterval(play, 20);">
<table id="scroll_field"><tr><td>
<%
dim rs
set rs=server.createobject("adodb.recordset")
sql="select * from shangpin order by id desc"
rs.open sql,conn,1,3
%>
<a href="Show_sp.asp?id=<%=rs("id")%>"><img src=<%=rs("content")%> border=0><%=rs("title")%></a> <!-- rs("content")是图片路径, rs ("title") 是产品名字-->
<%
rs.MoveNext
row_count=row_count+1
rs.close
%>
</td><td></td></tr></table>
</div>
<script type="text/javascript">
var timer = null;
var field = document.getElementById("scroll_field");
onload = function(){
field.getElementsByTagName("td")[1].innerHTML += field.getElementsByTagName("td")[0].innerHTML;
timer = setInterval(play, 20);
}
function play(){
var lf = 0;
if(!field.style.left){
field.style.left = "0px";
lf = 0;
}
else{
lf = parseInt(field.style.left);
}
try{
field.style.left = ((lf - 1) % (field.clientWidth / 2)) + "px";
}
catch(e){
field.left = ((l - 1) % (field.clientWidth / 2)) + "px";
}
}
</script>
</div></td> 展开
div.image{background-color:#EFF6FE;}
div.scroll{margin:10px;width:790px;height:100%;overflow:hidden;background-color:#00FF00;}
div.scroll table{left:0px;width:100%;position:relative;}
div.scroll table td{white-space:nowrap;}
div.scroll table td img{height:100px;margin:0px 5px;border:0px;}
</style>
<div class="image">
<div class="scroll" onmouseover="clearInterval(timer);" onmouseout="timer = setInterval(play, 20);">
<table id="scroll_field"><tr><td>
<%
dim rs
set rs=server.createobject("adodb.recordset")
sql="select * from shangpin order by id desc"
rs.open sql,conn,1,3
%>
<a href="Show_sp.asp?id=<%=rs("id")%>"><img src=<%=rs("content")%> border=0><%=rs("title")%></a> <!-- rs("content")是图片路径, rs ("title") 是产品名字-->
<%
rs.MoveNext
row_count=row_count+1
rs.close
%>
</td><td></td></tr></table>
</div>
<script type="text/javascript">
var timer = null;
var field = document.getElementById("scroll_field");
onload = function(){
field.getElementsByTagName("td")[1].innerHTML += field.getElementsByTagName("td")[0].innerHTML;
timer = setInterval(play, 20);
}
function play(){
var lf = 0;
if(!field.style.left){
field.style.left = "0px";
lf = 0;
}
else{
lf = parseInt(field.style.left);
}
try{
field.style.left = ((lf - 1) % (field.clientWidth / 2)) + "px";
}
catch(e){
field.left = ((l - 1) % (field.clientWidth / 2)) + "px";
}
}
</script>
</div></td> 展开
2个回答
展开全部
<%
dim rs
dim row_count
row_count=0
set rs=server.createobject("adodb.recordset")
sql="select * from shangpin order by id desc"
rs.open sql,conn,1,3
%>
<a href="Show_sp.asp?id=<%=rs("id")%>"><img src=<%=rs("content")%> border=0><%=rs("title")%></a> <!-- rs("content")是图片路径, rs ("title") 是产品名字-->
<%
rs.MoveNext
row_count=row_count+1
rs.close
%>
dim rs
dim row_count
row_count=0
set rs=server.createobject("adodb.recordset")
sql="select * from shangpin order by id desc"
rs.open sql,conn,1,3
%>
<a href="Show_sp.asp?id=<%=rs("id")%>"><img src=<%=rs("content")%> border=0><%=rs("title")%></a> <!-- rs("content")是图片路径, rs ("title") 是产品名字-->
<%
rs.MoveNext
row_count=row_count+1
rs.close
%>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询