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
<select id="select_platform" name="source" style="height:35px;"> {% for index,item2 in result %} <td><option value="<?=$result[$index]['partner_id'];?>" <?php if($source_id==$result[$index]['
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 = &