select object
[object](options array)
フォームの選択リストオブジェクト
selectオブジェクトはプロパティ of : formオブジェクト
options配列はプロパティ of : selectオブジェクト
書式 :
selectオブジェクトの properties と methodsの使い方:
1. select名.property名
2. select名.method名(パラメーター)
3. form名.elements[index番号].property名
4. form名.elements[index番号].method名(パラメーター)
5. select名.selectedindex=index番号//選択状態の選択*MULTIPLE有の時
6. select名.selected=true | false//選択状態の選択*MULTIPLE無の時
option's propertiesの使い方:
1. select名.options[index番号].property名
2. form名.elements[index番号].options[index番号].property名
options arrayの使い方:
1. option名=new Option([optionText,optionValue,defaultSelected,selected]) //オプションコンストラクタ。NN3.x以降
2. select名.options
3. select名.options[index番号]
4. select名.options[index番号]=option名 //NN3.x以降 オプションの追加
5. select名.options[index番号]=null //NN3.x以降 オプションの削除
6. select名.options.length
1. select名.length
2. select名.options.length
select object の properties:
length,
name,
options,
selectedIndex ,
text(NN3.X〜),
type(NN3.X〜)
options array の properties:
defaultSelected,
index,
length,
name,
selected,
selectedIndex,
text,
value
Option()コンストラクタで作られたオブジェクトのproperties(NN3.X〜):
defaultSelected,
index,
prototype,
selected,
text,
value
Methods:
blur ,
focus
Event handlers:
onBlur ,
onChange,
onFocus
1●セレクトオプションの切り替え
NN3.x以降 オプションの追加削除が可能になりました。(この場合、history.go(0)などによるリフレッシュが必要です。ただリフレッシュすると時間がかかってうっとうしいので、ここではIMGとセレクトオブジェクトの数と場所が変わらないように設定し、リフレッシュはしていません。)
牛久大仏は私(高橋)の勤め先です。浅草の本願寺が建立した世界最大の青銅製大仏(高さ120m)でギネスにも載ってます。奈良の大仏様が手のひらに乗ってしまうものすごい大きさです。とは言っても、私は、お坊さんではありません。う〜む、こういうページだと会社で堂々と作れていいぞっ(^^)/。
撮影:大仏の4,7,11以外は高橋(著作権フリー^^)
Source
Maintained by
tato@fureai.or.jp works1996takahashi factory