簡易代碼之家
BlogJava
::
首頁
::
聯系
::
聚合
::
管理
157 Posts :: 2 Stories :: 57 Comments :: 0 Trackbacks
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(2)
給我留言
查看公開留言
查看私人留言
我參與的團隊
隨筆檔案
2015年6月 (1)
2015年4月 (5)
2015年3月 (2)
2015年1月 (3)
2014年12月 (2)
2014年11月 (3)
2014年10月 (4)
2014年9月 (4)
2014年8月 (5)
2014年7月 (11)
2014年6月 (1)
2014年4月 (1)
2013年11月 (1)
2013年8月 (1)
2013年7月 (4)
2013年6月 (1)
2013年5月 (6)
2013年4月 (3)
2013年3月 (2)
2013年2月 (2)
2013年1月 (1)
2012年10月 (3)
2012年9月 (10)
2012年8月 (3)
2012年7月 (2)
2012年6月 (1)
2012年4月 (4)
2011年4月 (1)
2011年3月 (1)
2011年2月 (2)
2010年12月 (2)
2010年10月 (1)
2010年9月 (1)
2010年8月 (2)
2010年7月 (1)
2010年6月 (5)
2010年5月 (9)
2010年3月 (1)
2010年1月 (2)
2009年11月 (1)
2009年9月 (5)
2009年5月 (4)
2009年4月 (7)
2008年10月 (3)
2008年8月 (1)
2008年7月 (5)
2008年6月 (2)
2008年5月 (1)
2008年4月 (3)
2008年3月 (6)
2008年1月 (3)
2007年12月 (1)
2007年11月 (1)
文章檔案
2012年10月 (1)
2007年11月 (1)
搜索
最新評論
1.?re: TFS新建根目錄文件夾
第三方
--手動閥
2.?re: Java web程序中備份oracle數據庫
要是寫上如何恢復數據庫就更好了
--yanwushu
3.?re: 一個調用百度地圖小實例[未登錄]
, .fj
--k
4.?re: Javascript實現Html頁面指定區域導出WORD
dsf
--d
5.?re: 移除JSCharts水印
fs.bg.2v(fX) 很棒
--zzz
閱讀排行榜
1.?Resource is out of sync with the file system的解決辦法(40117)
2.?巧用Ajax4Jsf的oncomplete事件(7161)
3.?一個調用百度地圖小實例(6644)
4.?集合的常用操作類CollectionUtils(5886)
5.?【百度地圖API】獲取行政區域的邊界(4633)
評論排行榜
1.?Resource is out of sync with the file system的解決辦法(8)
2.?Java中對日期的常用處理(6)
3.?實現文字上標的CSS樣式(4)
4.?Spring Mail中文亂碼問題(4)
5.?移除JSCharts水印(4)
雙多選框傳值
效果如圖:
代碼如下:
1
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
2
<
html
xmlns
="http://www.w3.org/1999/xhtml"
>
3
<
head
>
4
<
meta
http-equiv
="Content-Type"
content
="text/html; charset=gb2312"
/>
5
<
title
>
多選框傳值
</
title
>
6
<
script
type
="text/javascript"
>
7
function
toRight()
{
8
var
sel1
=
document.getElementById(
"
s1
"
);
9
var
sel2
=
document.getElementById(
"
s2
"
);
10
for
(i
=
0
;i
<
sel1.length;i
++
)
{
11
if
(sel1.options[i].selected)
{
12
var
target
=
true
;
13
for
(
var
j
=
0
;j
<
sel2.length;j
++
)
{
14
if
(sel1.options[i].text
==
sel2.options[j].text)
{
15
target
=
false
;
16
break
;
17
}
18
}
19
if
(target)
{
20
var
oOption
=
document.createElement(
"
option
"
);
21
sel2.options.add(oOption,parseInt(sel1.options[i].value));
22
oOption.text
=
sel1.options[i].text;
23
oOption.selected
=
false
;
24
}
25
}
26
}
27
}
28
function
toLeft()
{
29
var
sel2
=
document.getElementById(
"
s2
"
);
30
for
(i
=
sel2.length
-
1
;i
>-
1
;i
--
)
{
31
if
(sel2.options[i].selected)
{
32
sel2.remove(i);
33
}
34
}
35
}
36
</
script
>
37
</
head
>
38
<
body
>
39
<
table
>
40
<
tr
>
41
<
td
>
42
<
select
id
="s1"
multiple
="multiple"
43
style
="width: 100px; height: 100px"
>
44
<
option
value
="1"
>
45
o1Text
46
</
option
>
47
<
option
value
="2"
>
48
o2Text
49
</
option
>
50
<
option
value
="3"
>
51
o3Text
52
</
option
>
53
<
option
value
="4"
>
54
o4Text
55
</
option
>
56
<
option
value
="5"
>
57
o5Text
58
</
option
>
59
</
select
>
60
</
td
>
61
<
td
>
62
<
input
type
="button"
value
=">"
onclick
="toRight();"
>
63
<
br
/>
64
<
input
type
="button"
value
="<"
onclick
="toLeft();"
>
65
</
td
>
66
<
td
>
67
<
select
id
="s2"
multiple
="multiple"
68
style
="width: 100px; height: 100px"
>
69
</
select
>
70
</
td
>
71
</
tr
>
72
</
table
>
73
</
body
>
74
</
html
>
75
posted on 2009-09-21 12:22
Jakin.zhou
閱讀(273)
評論(0)
編輯
收藏
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
Copyright @ Jakin.zhou
Powered by:
.Text
and
ASP.NET
Theme by:
.NET Monster
主站蜘蛛池模板:
国产亚洲综合一区柠檬导航
|
久久久精品2019免费观看
|
久久久久久亚洲精品无码
|
日韩亚洲产在线观看
|
99久久婷婷国产综合亚洲
|
亚洲AV无码国产精品色
|
亚洲午夜电影在线观看高清
|
亚洲午夜久久久久久尤物
|
亚洲永久中文字幕在线
|
亚洲国产成AV人天堂无码
|
亚洲a级在线观看
|
亚洲视频在线观看2018
|
亚洲欧美中文日韩视频
|
国产精品亚洲片在线花蝴蝶
|
麻豆91免费视频
|
久久国产一片免费观看
|
97国免费在线视频
|
久久久久久影院久久久久免费精品国产小说
|
成人AV免费网址在线观看
|
野花高清在线观看免费3中文
|
国产卡一卡二卡三免费入口
|
免费看美女让人桶尿口
|
四虎永久免费观看
|
国产亚洲成人在线播放va
|
亚洲国产精品无码久久久不卡
|
亚洲天堂男人天堂
|
四虎亚洲精品高清在线观看
|
国产亚洲欧美日韩亚洲中文色
|
男人扒开添女人下部免费视频
|
怡红院免费的全部视频
|
182tv免费观看在线视频
|
成年女人18级毛片毛片免费
|
尤物永久免费AV无码网站
|
亚洲日韩国产精品乱
|
久久久久久a亚洲欧洲AV
|
中文字幕 亚洲 有码 在线
|
日韩色视频一区二区三区亚洲
|
三年片免费观看大全国语
|
成年人免费的视频
|
亚洲av午夜精品一区二区三区
|
国产亚洲美女精品久久久久狼
|