我想做像csdn图片轮换,我是像小山老师博客里那样子做的,但为什么加载javascript提示缺少十六进制数字
。。。。。。。。。。。。。。。。。。。。
<script>
<!--
<%=LoadImage()%> //从数据库加载
var step=0;
function slideit(){
var oImg = document.getElementById( "javascript.img ");
if (document.all){oImg.filters.blendTrans.apply();}
oImg.src=ImgSrc[step];
document.getElementById( "javascript.a ").href=ImgHerf[step];
oImg.title=ImgAlt[step];
if (document.all){oImg.filters.blendTrans.play();}
step = (step <(ImgSrc.length-1))?(step+1):0;
(new Image()).src = ImgSrc[step];//加载下一个图片
}
setInterval( "slideit() ",5000);
//-->
</script>
Function LoadImage() As String
Dim sql As String = "select * from ImageChange "
Dim ds As DataSet
ds = ReturnDataset(sql)
Dim img As String = " "
For m As Integer = 0 To ds.Tables(0).Rows.Count - 1
img += "var ImgSrc = new Array(); "
'图片地址
img &= "ImgSrc[ " & m & "] = " & " " " " & ds.Tables(0).Rows(m).Item( "DisplayImage ").ToString() & " " "; "