Chinaunix首页 | 论坛 | 博客
  • 博客访问: 363799
  • 博文数量: 16
  • 博客积分: 4010
  • 博客等级: 上校
  • 技术积分: 1401
  • 用 户 组: 普通用户
  • 注册时间: 2006-06-06 10:04
文章分类

全部博文(16)

文章存档

2010年(1)

2009年(10)

2008年(5)

我的朋友

分类:

2009-10-13 11:09:21

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
 <head>
  <title> New Document </title>
<style>
option.disabled {
color: #999;
}
</style>
<script>
function preventSelectDisabled(oSelect) {
    var isOptionDisabled = oSelect.options[oSelect.selectedIndex].disabled;
    if(isOptionDisabled) {
        oSelect.selectedIndex = oSelect.defaultSelectedIndex;
        return false;
    }
    else oSelect.defaultSelectedIndex = oSelect.selectedIndex;
    return true;
}
</script>
 </head>

 <body>
     <select name="Type" id="ReportName" class="textinput"
        onchange='return preventSelectDisabled(this)'>
        <option value="reportAsset">
          Positions Summary
        </option>

        <option value="reportOptions">
          Account Transactions
        </option>
        <option value="reportOptions">
          Performance Summary
        </option>

        <option disabled='disabled' class='disabled'>

          Asset Allocations
        </option>
       
        <option disabled='disabled' class='disabled'>
          Options Tracking
        </option>

        <option disabled='disabled' class='disabled'>
          Historical Variance
        </option>

        <option disabled='disabled' class='disabled'>
          Portfolio Statistics
        </option>
      </select>
 </body>
</html>

演示:
阅读(1430) | 评论(0) | 转发(0) |
0

上一篇:top命令说明

下一篇:php 生成随机数

给主人留下些什么吧!~~