日期:2014-05-16 浏览次数:20569 次
<html>
    <head>
        <script type="text/javascript">
            function clickSel() {
                var sel1 = document.getElementById("sel1");
                var sel2 = document.getElementById("sel2");
                var sel3 = document.getElementById("sel3");
                sel2.selectedIndex = sel3.selectedIndex = sel1.selectedIndex;
                sel2.onfocus = function() {   
            var index = this.selectedIndex;   
            this.onchange = function() {   
                this.selectedIndex = index;   
            };   
        };   
            }
        </script>
    </head>
    <body>
        <select id="sel1" onchange="clickSel()">
            <option>opts1</option>
            <option>opts2</option>
            <option>opts3</option>
            <option>opts4</option>
            <option>opts5</option>
            <option>opts6</option>
        </select>
        <select id="sel2">
            <option>opts1</option>
            <option>opts2</option>
            <option>opts3</option>
            <option>opts4</option>
            <option>opts5</option>
            <option>opts6</option>
        </select>
        <select id="sel3">
            <option>opts1</option>
            <option>opts2</option>
            <option>opts3</option>
            <option>opts4</option>
            <option>opts5</option>
            <option>opts6</option>
        </select>
    </body>
</html>