<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> YOUKU的模拟select </title> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONTENT=""> <META NAME="Keywords" CONTENT=""> <META NAME="Description" CONTENT=""> </head> <BODY> <script language="javascript" type="text/javascript"> <!-- function $(ob) { return document.getElementById(ob); } function drop_mouseout(pos){ var posSel=$(pos+"Sel").style.display; if(posSel=="block"){ timer = setTimeout("drop_hide(\'"+pos+"\')", 1000); } } function drop_hide(pos){ $(pos+"Sel").style.display="none"; } function drop_mouseover(pos){ try{window.clearTimeout(timer);}catch(e){} } function search_show(pos,searchType,href){ document.getElementById(pos+"SearchType").value=searchType; document.getElementById(pos+"Sel").style.display="none"; document.getElementById(pos+"Slected").innerHTML=href.innerHTML; document.getElementById(pos+\'q\').focus(); var sE = document.getElementById("searchExtend"); if(sE != undefined && searchType == "bar"){ sE.style.display="block"; }else if(sE != undefined){ sE.style.display="none"; } try{window.clearTimeout(timer);}catch(e){} return false; } //--> </script> <input class="txtSearch" id="headq" name="q" type="text" value=""/> <input id="headSearchType" name="searchType" type="hidden" value="video"> <div class="selSearch"> <div class="nowSearch" id="headSlected" onclick="if(document.getElementById(\'headSel\').style.display==\'none\'){document.getElementById(\'headSel\').style.display=\'block\';}else {document.getElementById(\'headSel\').style.display=\'none\';};return false;" onmouseout="drop_mouseout(\'head\');">视频</div> <div class="btnSel"><a href="#" onclick="if(document.getElementById(\'headSel\').style.display==\'none\'){document.getElementById(\'headSel\').style.display=\'block\';}else {document.getElementById(\'headSel\').style.display=\'none\';};return false;" onmouseout="drop_mouseout(\'head\');"></a></div> <div class="clear"></div> <ul class="selOption" id="headSel" style="display:none;"> <li><a href="#" onclick="return search_show(\'head\',\'video\',this)" onmouseover="drop_mouseover(\'head\');" onmouseout="drop_mouseout(\'head\');">视频</a></li> <li><a href="#" onclick="return search_show(\'head\',\'playlist\',this)" onmouseover="drop_mouseover(\'head\');" onmouseout="drop_mouseout(\'head\');">专辑</a></li> <li><a href="#" onclick="return search_show(\'head\',\'user\',this)" onmouseover="drop_mouseover(\'head\');" onmouseout="drop_mouseout(\'head\');">会员</a></li> <li><a href="#" onclick="return search_show(\'head\',\'bar\',this)" onmouseover="drop_mouseover(\'head\');" onmouseout="drop_mouseout(\'head\');">看吧</a></li> <li><a href="#" onclick="return search_show(\'head\',\'pk\',this)" onmouseover="drop_mouseover(\'head\');" onmouseout="drop_mouseout(\'head\');">PK擂台</a></li> </ul> </div> </body> </html> 相关文章: 2021-12-18 2021-05-14 2021-09-13 2021-11-22 2021-09-11 2018-04-26 2021-10-02 2021-12-04