双引号问题
一段程序:<SCRIPT type=text/javascript>
var promos2=“<%=pic2%>”;
var mylinks2=“<%=link2%>”;
</SCRIPT>
我想实现的结果是:
<SCRIPT type=text/javascript>
var promos2="http://photocdn.sohu.com/20060615/Img243739485.jpg|http://photocdn.sohu.com/20060615/Img243736791.jpg|http://photocdn.sohu.com/20060615/Img243737660.jpg|http://photocdn.sohu.com/20060614/Img243736438.jpg|http://photocdn.sohu.com/20060615/Img243739809.jpg";
var mylinks2="http://2006.sohu.com/20060615/n243740602.shtml|http://sports.sohu.com/20060615/n243736832.shtml|http://2006.sohu.com/s2006/0955/s243373805/|http://2006.sohu.com/s2006/0955/s243373788/|http://2006.sohu.com/s2006/3794/s243318116/";
</SCRIPT>
其中pic2 link2是:
<%
pic2=p(0)&"|"&p(1)&"|"&p(2)&"|"&p(3)&"|"&p(4)
link2=l(0)&"|"&l(1)&"|"&l(2)&"|"&l(3)&"|"&l(4)
%>
我想问:
<SCRIPT type=text/javascript>
var promos2=“<%=pic2%>”;
var mylinks2=“<%=link2%>”;
</SCRIPT>
这样对吗,提示页面有问题
如何修改才正确?