1:在jsp或者HTML页面中新建一个下拉框 年度:<select id="cx_nd" name="cx_nd" style="width: 60px;"></select> 年 2:调用下面方法即可 window.onload = function(){ var sel = document.getElementById("cx_nd"); var date = new Date(); for(va
var oDiv = document.getElementById("sunav"); var oLi = oDiv.getElementsByClassName("sunav"); for(i=0; i<oLi.length; i++){ var aLi = oLi[i]; aLi.onmouseover = function(){ this.getElementsByTagName("ul")[0].style.display = &