🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #19610

Re: Javascript 除了可以查?(下拉表

#19610
From: ???????J
Date: Thu, 01 Jan 2004 16:35
60 lines
3786 bytes
> �Ҹо�����������ɣ�Ϊ����õ�abc�أ�һ������£��Ǹ�ֻ��
> ��ʾ���û����ģ�����ʶ����value���㿼��һ�°ɣ�

��Ҫ??������ԭ��ģ�Ŀ����?��������ܣ��ӿ��ٶȺ�?��???��ʹ�úͼӿ���???��
??������?javascript��?��?338K(����Php + Mysql��ɵ�)��?���ٶ���Ҫ7��??����?�����棬
����?7��?��������???��
?��???�͵�?��(<option value=1221>��?-1174-T030��-32846A</option>)����1500?�С�Array
��6 ��? (С����?������?)��ÿ?array����1500????��
??һ���ڵ�Ŭ������??ʮ?��������?���԰�338k ?��? 85k��
��?���ٶ���Ҫ10�룬��Ҫ???����?�ٿ�?�õ�javascript?��
e.g.
for($i=1;$i<1500;$i++) {
  document.write("<option value="+$i+">productcode["+$i+"]</option>");
}
?��?���ٶȣ����Է�?��?�ٿ�?������������?javascript��
��?��1500��(<option value=1221>��?-1174-T030��-32846A</option>)??��?����
����?��?�Ǻܴ���Ȼ֮?����ɲ����Բ�Ҫproductcode[]??array(��С����??ʮkb)����?������?�õ�??��?����?�ɹ��ˡ�
182kb ?���ٶ� 3��
?��?��?��(<option value=1221>��?-1174-T030��-32846A</option>)��
(<option>��?-1174-T030��-32846A)??�ӡ�



����?�ҵ��𰸣�
<html> 
<head> 
<title>not_this.htm</title> 
<script language="javascript" type="text/javascript"> 
<!-- 
function which(that) { 
var answer = that.options[that.selectedIndex].text; 
alert(answer); 
} 
// --> 
</script> 
</head> 
<body> 
<form name="form1" method="post" action=""> 
<select name="menu1" onChange="which(this)"> 
<option value="1">ABC</option> 
<option value="2">DEF</option> 
<option value="3">GHI</option> 
<option value="4">JKL</option> 
</select> 
</form> 
</body> 
</html>


> �� �� andrew@tophk.net (???????J) �Ĵ������ᵽ: ��
> : Javascript ���˿��Բ�?(������?)�� value�⣬??�ɲ����Բ�??�ݣ�
> : ��������ӿ��԰�?��($answer)�õ�menu1��??��valueֵ��
> : ������??��һ?����?��һ?��valueֵ��1������$answer��1��
> : �������������javascript�õ�ABC???�ϣ�??��ʲ?ָ�����������
> : e.g.
> : <script>
> : function this() {
> :   $answer = document.form1.menu1.value;
> : }
> : >>  .................<����ʡ��>............
Technical Details
Message-ID: <ed1b12b4.0401010835.19669e83@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
References: <4A4kIY$AKN@freecity.dhs.org>

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,b6a6b74f8389f034
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2004-01-01 08:35:14 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: andrew@tophk.net (???????J)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: Javascript 除了可以查?(下拉表
Date: 1 Jan 2004 08:35:13 -0800
Organization: http://groups.google.com
Lines: 60
Message-ID: <ed1b12b4.0401010835.19669e83@posting.google.com>
References: <4A4kIY$AKN@freecity.dhs.org>
NNTP-Posting-Host: 219.133.27.70
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1072974913 24911 127.0.0.1 (1 Jan 2004 16:35:13 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 1 Jan 2004 16:35:13 +0000 (UTC)