JS里嵌套asp.net的datalist循环
JS代码:<scriptlanguage="javascript"type="text/javascript">ati('http://www.qseetv.com','...
JS代码:
<script language="javascript" type="text/javascript">
ati('http://www.qseetv.com', '../images/slider/slider2.jpg', '漓江-落日斜照');
ati('http://www.qseetv.com', '../images/slider/slider1.jpg', '漓江-田园');
ati('http://www.qseetv.com', '../images/slider/slider3.jpg', '漓江-清江倒影');
document.write(' <embed src="../flash/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#DADADA" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"/>');
</script>
上边的三张图片我要从数据库往出得,然后用asp.net代码的datalist循环实现,该如何写呀?在JS里写DATALIST没反应,应该是不支持吧,具体应该怎么写,望高手写的详细点儿,这个问题一直困扰着我. 展开
<script language="javascript" type="text/javascript">
ati('http://www.qseetv.com', '../images/slider/slider2.jpg', '漓江-落日斜照');
ati('http://www.qseetv.com', '../images/slider/slider1.jpg', '漓江-田园');
ati('http://www.qseetv.com', '../images/slider/slider3.jpg', '漓江-清江倒影');
document.write(' <embed src="../flash/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#DADADA" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"/>');
</script>
上边的三张图片我要从数据库往出得,然后用asp.net代码的datalist循环实现,该如何写呀?在JS里写DATALIST没反应,应该是不支持吧,具体应该怎么写,望高手写的详细点儿,这个问题一直困扰着我. 展开
1个回答
展开全部
俩字:不行!
可以这样实现:
<script language="javascript" type="text/javascript">
<%=script%>
document.write(' <embed src="../flash/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#DADADA" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"/>');
</script>
.cs代码页
protected string script;
//通过循环table给script赋值
可以这样实现:
<script language="javascript" type="text/javascript">
<%=script%>
document.write(' <embed src="../flash/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#DADADA" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"/>');
</script>
.cs代码页
protected string script;
//通过循环table给script赋值
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询