posts - 0,comments - 0,trackbacks - 0

<html>
<title></title>
<head>
<script language="JavaScript" type="text/JavaScript">
function x1(is)
{

var xx=new Array(new Array("HTTP","http://"),
    new Array("HTTPS","https://"),new Array("MMS","mms://"),new Array("RTSP","rtsp://"),
    new Array("P2SP","p2sp://"),new Array("FTP","ftp://"));

if (is=="")
{
  document.getElementById("channel_name").value="";
 
}
else
{
 for(i=0;i<xx.length;i++)
 {

   if (xx[i][0]==is)
   {
   document.getElementById("channel_name").value=xx[i][1];
   break;
   }
  
 }
 
}
}
</script>

</head>

<body>


<select name='channel_type' size=1 id="dd" onChange="x1(this.options[this.selectedIndex].value)">
              <option selected value='HTTP'>HTTP</option>
              <option  value='HTTPS'>HTTPS</option>
              <option  value='MMS'>MMS</option>
              <option  value='RTSP'>RTSP</option>
              <option  value='P2SP'>P2SP</option>
              <option  value='FTP'>FTP</option>
              </select>
              <input type="text" name="channel_name"  id="channel_name">

</body>
</html>

posted on 2006-11-28 17:51 yxw 阅读(554) 评论(0)  编辑  收藏 所属分类: javascript

只有注册用户登录后才能发表评论。


网站导航:
博客园   IT新闻   Chat2DB   C++博客   博问