帮我看看代码好不?
大家帮帮忙,帮我看下代码有什么问题!
<script language= "javascript ">
//建立曲线对象
var vc = new VMLCurve(document.all.curve);
//设置X坐标值,从左至右
vc.configXValue = new Array( '一月 ', '二月 ', '三月 ', '四月 ', '五月 ', '六月 ', '七月 ', '八月 ', '九月 ', '十月 ', '十一月 ', '十二月 ');
//设置Y坐标轴
vc.configYPerValue = 100;
vc.configYMinValue = 100;
vc.configYValue = new Array(100,200,300,400,500,600,700,800,900,1000);
vc.init( "vc ", "曲线图 ");
//用数组设置点的横纵标值及提示信息
<%
set rs=server.CreateObject( "adodb.recordset ")
rs.open ( "select * from chart "),conn,1,1
if not (rs.eof and rs.bof) then
do while not rs.eof then
mycart=mycart& ", "&x1
rs.movenext
loop
end if
mycart=split(rss( "mycart "), ", ")
%>
var xValueArr = <%=mycart()%> ; //X轴数据,
<%
set rs=server.CreateObject( "adodb.recordset ")
rs.open ( "select * from chart "),conn,1,1
if not (rs.eof and rs.bof) then
do while not rs.eof then
mycart=mycart& ", "&y1
rs.movenext
loop
end if
mycart=split(rss( "mycart "), ", ")
%>
var yValueArr = <%=mycart()%> ; //X轴数据,
//var xValueArr = new Array(1,2,3,4,5,6,7,8,9,10,11,12); //X轴数据,
//var yValueArr = new Array(330,280,420,550,600,700,800,720