Сообщение от РомаBab
|
Я написал такой код
|
Многабукаф...
<!DOCTYPE html>
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=windows-1251' />
<script src='http://code.jquery.com/jquery-latest.js'></script>
<!--
<script src="https://code.angularjs.org/1.3.9/angular.min.js"></script>
<script src="https://code.angularjs.org/1.3.9/angular-route.js"></script>
<link rel='stylesheet type=text/css href=tmp.css' />
<link rel="stylesheet/less" type="text/css" href="style.less">
<script src="http://cdnjs.cloudflare.com/ajax/libs/less.js/2.5.0/less.min.js"></script>
-->
<style type='text/css'>
</style>
<script type='text/javascript'>
function GotoLink(this_sel){
var URL = this_sel.value;
alert(URL);
if(URL != "00000")
location.href = URL;
};
</script>
</head>
<body>
<select ID="LinkPage" onChange="GotoLink(this)" size=1>
<OPTION VALUE="00000" >Выбор сервера</OPTION>
<OPTION VALUE="http://192.168.192.21/index.php3" >сервер1</OPTION>
<OPTION VALUE="http://192.168.192.22/index.php3" >сервер2</OPTION>
<OPTION VALUE="http://192.168.192.23/index.php3" >сервер3</OPTION>
<OPTION VALUE="http://192.168.192.24/index.php3" >сервер4</OPTION>
<OPTION VALUE="http://192.168.192.25/index.php3" >сервер5</OPTION>
<OPTION VALUE="http://192.168.192.26/index.php3" >сервер6</OPTION>
<OPTION VALUE="http://192.168.192.27/index.php3" >сервер7</OPTION>
<OPTION VALUE="http://192.168.192.28/index.php3" >сервер8</OPTION>
<OPTION VALUE="http://192.168.192.29/index.php3" >сервер9</OPTION>
<OPTION VALUE="http://192.168.192.30/index.php3" >сервер10</OPTION>
</SELECT>
</body>
</html>