DIV+CSS+JS仿Select下拉表單網頁特效原始碼下載

來源:互聯網
上載者:User

標籤:html   div   css   js   下拉式功能表   

DIV+CSS+JS仿Select下拉表單

原文:DIV+CSS+JS仿Select下拉表單網頁特效原始碼下載

原始碼:http://www.zuidaima.com/share/1550463331830784.htm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>DIV+CSS+JS仿下拉表單-www.zuidaima.com-最代碼</title><script type="text/javascript" >function $$$$$(_sId){ return document.getElementById(_sId); }function hide(_sId) {$$$$$(_sId).style.display = $$$$$(_sId).style.display == "none" ? "" : "none";}function pick(v) { document.getElementById('am').value=v;hide('HMF-1')}function bgcolor(id){ document.getElementById(id).style.background="#F7FFFA"; document.getElementById(id).style.color="#000";}function nocolor(id){ document.getElementById(id).style.background=""; document.getElementById(id).style.color="#788F72";}</script><style type="text/css">*{margin:0px; padding:0px;}body{font-family: Arial, Helvetica, sans-serif;font-size: 12px;}.cur{cursor:pointer; display:block;color:#788F72;width:146px; height:22px; line-height:22px; padding:0px 0px 0px 2px;}.am{border: 0px;color:#788F72;cursor: pointer;background:#fff url('0.gif') no-repeat; width: 150px;height: 19px;margin:10px 0px 0px 10px; padding:3px 0px 0px 2px;}.bm{border: 1px #999999 solid ;width: 148px; margin-left:10px;}</style></head><body><form><input onclick="hide('HMF-1')" type="text" value="請選擇" id="am" class="am" /><div id="HMF-1" style="display: none " class="bm"> <span id="a1" onclick="pick('最代碼')" onMouseOver="bgcolor('a1')" onMouseOut="nocolor('a1')" class="cur">測試一</span> <span id="a2" onclick="pick('www.zuidaima.com')" onMouseOver="bgcolor('a2')" onMouseOut="nocolor('a2')" class="cur">測試二</span> <span id="a3" onclick="pick('java')" onMouseOver="bgcolor('a3')" onMouseOut="nocolor('a3')" class="cur">測試三</span> <span id="a4" onclick="pick('html')" onMouseOver="bgcolor('a4')" onMouseOut="nocolor('a4')" class="cur">測試四</span> <span id="a5" onclick="pick('springmvc')" onMouseOver="bgcolor('a5')" onMouseOut="nocolor('a5')" class="cur">測試五</span> <span id="a6" onclick="pick('spring')" onMouseOver="bgcolor('a6')" onMouseOut="nocolor('a6')" class="cur">測試六</span></div></form></body></html>

 

DIV+CSS+JS仿Select下拉表單網頁特效原始碼下載

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.