校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁 > 知識(shí)庫 > 編寫一個(gè)含二級(jí)目錄的源碼(Asp+JavaScript)

編寫一個(gè)含二級(jí)目錄的源碼(Asp+JavaScript)

熱門標(biāo)簽:蘭州智能語音電銷機(jī)器人功能 企數(shù)外呼系統(tǒng)能用多久 咸陽銷售外呼系統(tǒng) 辦理400電話一年多少錢 寧夏怎么申請400電話 常用地圖標(biāo)注范圍點(diǎn) 離線電子地圖標(biāo)注軟件注冊 外呼回?fù)芟到y(tǒng)圖片 為什么外呼系統(tǒng)需要預(yù)存話費(fèi)呢
********************** (一) 打開記錄集,創(chuàng)建數(shù)組,把記錄集的值賦給數(shù)組.

Dim count
set Rs=server.createobject("adodb.recordset")
Sql = "select * from BookBoard order by ClassId desc"
Rs.open Sql,cn,1,1%>
script language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
%count = 0
do while not Rs.eof %>
subcat[%=count%>] = new Array("%= trim(Rs("BoardName"))%>","%= trim(Rs("ClassId"))%>","%= trim(Rs("BoardId"))%>");
%count = count + 1
Rs.movenext
loop
Rs.close%>
onecount=%=count%>;
function changelocation(locationid)
{document.form1.BoardId.length = 0; 
 var locationid=locationid;
 var i;
 for (i=0;i  onecount; i++)
{if (subcat[i][1] == locationid)
{document.form1.BoardId.options[document.form1.BoardId.length] = new Option(subcat[i][0], subcat[i][2]);
}}}    
/script>
********************** (二) 顯示分組,并編寫列表框的OnChange事件.
%set Rs=server.CreateObject("adodb.recordset")
    Sql="select * from BookClass order by ClassId desc"
    Rs.open Sql,cn,1,1
    if Rs.eof and Rs.bof then
    response.write "請先添加總類。"
    response.end
    else%>
    select name="ClassId" onChange="changelocation(document.form1.ClassId.options[document.form1.ClassId.selectedIndex].value)">
    option selected value="">==請選擇大類==/option>
    % do until Rs.eof%>
    option value="%=trim(Rs("ClassId"))%>">%=trim(Rs("ClassName"))%>/option>
     %Rs.movenext
       loop
       end if
       Rs.close
       set Rs = nothing%>
    /select>
    select name="BoardId">option selected value="">==請選擇小類==/option>
    /select>

標(biāo)簽:昌都 咸陽 昆明 泰州 家電維修 鐵嶺 溫州 麗江

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《編寫一個(gè)含二級(jí)目錄的源碼(Asp+JavaScript)》,本文關(guān)鍵詞  編寫,一個(gè),含,二級(jí),目錄,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《編寫一個(gè)含二級(jí)目錄的源碼(Asp+JavaScript)》相關(guān)的同類信息!
  • 本頁收集關(guān)于編寫一個(gè)含二級(jí)目錄的源碼(Asp+JavaScript)的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 乌拉特后旗| 武威市| 喀喇沁旗| 理塘县| 龙陵县| 裕民县| 漳平市| 循化| 黎川县| 吐鲁番市| 西青区| 旺苍县| 高陵县| 大悟县| 建始县| 永宁县| 鲁甸县| 本溪| 都匀市| 健康| 延寿县| 潞西市| 嘉荫县| 大兴区| 文山县| 阳谷县| 金坛市| 尼玛县| 龙海市| 新野县| 梅州市| 永泰县| 中西区| 汤原县| 长乐市| 南通市| 兰坪| 什邡市| 开平市| 沙雅县| 扶沟县|