濮阳杆衣贸易有限公司

主頁 > 知識庫 > 網(wǎng)上用的比較多的asp級聯(lián)菜單效果代碼

網(wǎng)上用的比較多的asp級聯(lián)菜單效果代碼

熱門標(biāo)簽:滴滴地圖標(biāo)注上車點 無營業(yè)執(zhí)照地圖標(biāo)注教學(xué) 宿州防封外呼系統(tǒng)平臺 地圖標(biāo)注還可以做嗎 電銷機器人采購 硅基電話機器人加盟 友邦互聯(lián)電銷機器人違法嗎 高質(zhì)量的電銷外呼系統(tǒng) 外呼系統(tǒng)怎么話費

復(fù)制代碼 代碼如下:

!--#include file="conn.asp"--> 
html> 
head> 
meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
meta name="GENERATOR" content="Microsoft FrontPage 4.0"> 
meta name="ProgId" content="FrontPage.Editor.Document"> 
title>New Page 1/title> 
/head> 
body> 

dim rs 
dim sql 
dim count 
set rs=server.createobject("adodb.recordset") 
sql = "select * from shiinfo order by id asc" 
rs.open sql,conn,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("shiname"))%>","%= trim(rs("shengcode"))%>","%= trim(rs("id"))%>"); 

count = count + 1 
rs.movenext 
loop 
rs.close 
%> 
onecount=%=count%>; 
function changelocation(locationid) 

document.form1.cid.length = 0;  
var locationid=locationid; 
var i; 
for (i=0;i  onecount; i++) 

if (subcat[i][1] == locationid) 
{  
document.form1.cid.options[document.form1.cid.length] = new Option(subcat[i][0], subcat[i][2]); 
}  

}  

/SCRIPT> 
SCRIPT language="javascript"> 
!-- 
function CheckForm() 

document.form1.txtcontent.value=document.form1.doc_html.value; 
return true 

//--> 
/SCRIPT> 
form name=form1 onsubmit="check()"> 
省份 % 
sql = "select * from shenginfo" 
rs.open sql,conn,1,1 
if rs.eof and rs.bof then 
response.write "請先添加省份。" 
response.end 
else 
%> 
Select name="sid" onChange="changelocation(document.form1.sid.options[document.form1.sid.selectedIndex].value)" >%  
do while not rs.eof 
%>OPTION selected value="%=trim(rs("id"))%>">%=trim(rs("shengname"))%>/OPTION> 

rs.movenext 
loop 
end if 
rs.close 
%> 
/Select>  
城市:Select name="cid"> 
OPTION selected value="">==請選城市==/OPTION> 
/Select> 
/form> 
/body> 
/html>

標(biāo)簽:宣城 儋州 新余 七臺河 錫林郭勒盟 雅安 江門 廣元

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《網(wǎng)上用的比較多的asp級聯(lián)菜單效果代碼》,本文關(guān)鍵詞  網(wǎng)上,用的,比較,多的,asp,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《網(wǎng)上用的比較多的asp級聯(lián)菜單效果代碼》相關(guān)的同類信息!
  • 本頁收集關(guān)于網(wǎng)上用的比較多的asp級聯(lián)菜單效果代碼的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    九龙坡区| 潜江市| 醴陵市| 镇坪县| 油尖旺区| 泾川县| 江永县| 汉寿县| 桦川县| 安吉县| 嘉峪关市| 德庆县| 祁东县| 昆山市| 资中县| 驻马店市| 姚安县| 治县。| 平安县| 健康| 枞阳县| 米泉市| 鸡东县| 尼勒克县| 乌兰察布市| 平凉市| 南开区| 宁城县| 元氏县| 晋州市| 大埔区| 宁陕县| 得荣县| 宜宾市| 青田县| 昭苏县| 荔波县| 海宁市| 古蔺县| 库车县| 洛南县|