以下是引用downdown在2005-8-1 18:18:40的发言:
感觉还是myliumin的好一点,因为我的数据是从库里调的,这样也便于后台管理.
myliumin能不能做一个简单的四级联动的,感觉挺麻烦的.帮帮忙吧!
谢谢!
数据? 数据 你用 ASP 读取输出成 JavaScript不久好了,个人感觉比使用iframe好
Response.Write "<Script Language='JavaScript'>"&VBCRLF
Response.Write "var city = new Array("&rs.RecordCount&");"&VBCRLF
Set rs = Server.createobject("ADODB.RecordSet")
sql = "select * from city"
rs.Open sql,conn,adOpenForwardOnly,adLockReadOnly
i = 0
While Not rs.Eof
Response.Write "city[i]='"&rs("cityName")&"';"&VBCRLF
Response.Write "somthing else;"&VBCRLF
i = i + 1
rs.MoveNext
Wend
rs.Close
Set rs = Nothing
Response.Write "</Script>"&VBCRLF
形式就是上面这样,应该狠清楚了
[此贴子已经被作者于2005-8-2 17:31:53编辑过]
VB, Delphi, ASP, PHP, JSP, .NET MS SQL, My SQL, Oracle Diablo, StarCraft, WarCraft, World of Warcraft