婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

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

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

熱門標(biāo)簽:蘭州智能語音電銷機器人功能 企數(shù)外呼系統(tǒng)能用多久 咸陽銷售外呼系統(tǒng) 辦理400電話一年多少錢 寧夏怎么申請400電話 常用地圖標(biāo)注范圍點 離線電子地圖標(biāo)注軟件注冊 外呼回撥系統(tǒng)圖片 為什么外呼系統(tǒng)需要預(yù)存話費呢
********************** (一) 打開記錄集,創(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)題《編寫一個含二級目錄的源碼(Asp+JavaScript)》,本文關(guān)鍵詞  編寫,一個,含,二級,目錄,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《編寫一個含二級目錄的源碼(Asp+JavaScript)》相關(guān)的同類信息!
  • 本頁收集關(guān)于編寫一個含二級目錄的源碼(Asp+JavaScript)的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 西乡县| 平凉市| 喜德县| 柳河县| 寿光市| 白水县| 凤台县| 佛坪县| 都安| 定结县| 临潭县| 阿克陶县| 宜州市| 怀宁县| 洪泽县| 启东市| 牡丹江市| 侯马市| 晋江市| 琼中| 友谊县| 和田县| 兴化市| 五指山市| 泽库县| 河源市| 巫溪县| 南涧| 沽源县| 朝阳市| 积石山| 淮南市| 通州区| 文山县| 资中县| 南开区| 澄江县| 宝山区| 双峰县| 安泽县| 博爱县|