Сообщение от discol
|
Блин хватит умничать!
|
Ты забыл кто тут сенсей? )))
Зацени
<!DOCTYPE html>
<html lang="ru" dir="ltr">
<head>
<meta charset="utf-8">
<script>
var
selected=[],
run=function(){
var list=document.getElementById('prog1');
for(var i=0; i <list.length; i++)
if(list[i].selected && list[i].value)
selected.push(list[i].value);
document.getElementById('log').innerHTML='<ul><li>'+selected.join('</li><li>')+'</li></ul>';
selected=[];
};
</script>
</head>
<body>
<select id="prog1" multiple="multiple" size="20" style="width:200px;">
<option value="">Выберите из списка</option>
<option value="file\\file\\goo1.cmd">goo1</option>
<option value="file\\file\\goo11.cmd">goo11</option>
<option value="file\\file\\goo21.cmd">goo21</option>
<option value="file\\file\\goo31.cmd">goo31</option>
<option value="file\\file\\goo12.cmd">goo12</option>
<option value="file\\file\\goo13.cmd">goo13</option>
<option value="file\\file\\goo19.cmd">goo19</option>
<option value="file\\file\\goo101.cmd">goo101</option>
<option value="file\\file\\goo15.cmd">goo15</option>
<option value="file\\file\\goo41.cmd">goo41</option>
</select>
<br/>
<input type="button" value="RUN" onclick="run();"/>
<hr/>
<div id="log"></div>
</body>
</html>