模拟 select下拉框

xiaoxiao2021-03-01  35

<script type="text/javascript"> iws=false; function shlist(){ document.getElementById("t_select-list").style.display=document.getElementById("t_select-list").style.display=="block"?"none":"block"; } function changesever(ts){ document.getElementById("t_selected").innerHTML="---"+ts.innerHTML+"---"; shlist(); //alert(document.getElementById("selected").rel); } function cws(val){ iws=val; } function hlist(){ if(!iws)document.getElementById("t_select-list").style.display="none"; } </script> <style type="text/css"> #t_select{ width:200px; height:18px; } #t_selected{width:200px; height:18px; line-height:18px; color:#F2E3A8; background:url(http://images2.wowchina.com/images_wow/front/select_top.gif) no-repeat; font-size:12px; text-align:center; position:relative; z-index:998; cursor:default;} #t_select-list{position:absolute;margin-top:1px; margin-left:3px;filter:alpha(opacity=90); opacity:0.9; background:#54482B; border:#918C6D 1px solid; font-size:12px; width:192px;text-align:center; display:none;} #t_select-list a{display:block; color:#F2E3A8; text-decoration:none;} #t_select-list a:hover{text-decoration:underline; background:#6F6546;} </style> <div id="t_select"> <div id="t_selected" οnclick="shlist();" οnmοuseοver="cws(true);" οnmοuseοut="cws(false);" οnblur="hlist()">---请选择您要下载的程序---</div> <div id="t_select-list" οnmοuseοver="cws(true);" οnmοuseοut="cws(false);"> <a href="http://www.wowchina.com/download/client/index.shtml#0" οnclick="changesever(this);" target="_blank">我没有客户端</a> <a href="http://www.wowchina.com/download/client/index.shtml#1123" οnclick="changesever(this);" target="_blank">我的客户端低于2.1.0版本</a> <a href="http://www.wowchina.com/download/client/index.shtml?2030" οnclick="changesever(this);" target="_blank">2.2.3到2.3.0升级补丁</a> <a href="http://www.wowchina.com/download/client/index.shtml?2032" οnclick="changesever(this);" target="_blank">2.3.0到2.3.2升级补丁</a> <a href="http://www.wowchina.com/download/client/index.shtml?2033" οnclick="changesever(this);" target="_blank">2.3.2到2.3.3升级补丁</a> <a href="http://www.wowchina.com/download/client/index.shtml?2040" οnclick="changesever(this);" target="_blank">2.3.3到2.4.0升级补丁</a> <a href="http://www.wowchina.com/download/client/index.shtml?2041" οnclick="changesever(this);" target="_blank">2.4.0到2.4.1升级补丁</a> <a href="http://www.wowchina.com/download/client/index.shtml?2042" οnclick="changesever(this);" target="_blank">2.4.1到2.4.2升级补丁</a> <a href="http://www.wowchina.com/download/client/index.shtml?2043" οnclick="changesever(this);" target="_blank">2.4.2到2.4.3升级补丁</a> </div> </div> <div>ffffffff</div>

 

相关资源:Office2016专业增强版中文免费正式版(附安装教程)64位
转载请注明原文地址: https://www.6miu.com/read-4150053.html

最新回复(0)