下拉菜单横向弹出选项效果

2个月前 (03-04 22:09)阅读58回复0
大陆
大陆
  • 管理员
  • 发消息
  • 注册排名1
  • 经验值4189
  • 级别管理员
  • 主题837
  • 回复2
楼主

正常情况下用户点击下拉菜单按钮时应该向下弹出下拉菜单选项,这个是横向弹出内容选项,直接选择内容即可。

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
<meta name="keywords" content="武鸣人网站,武鸣信息网,武鸣本地网,武鸣信息资源平台,减肥,健身,励志,励志语录,js特效,网页特效,www.wuming.ren">
<meta name="description" content="欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。">
<title>下拉菜单横向弹出选择效果_武鸣人</title>
<style type="text/css">
*{font-size:12px;}
a.s_l{border:#dddddd 1px solid;border-right:#dddddd 0px solid;background:#ffffff;padding:4px 6px 2px 6px;text-decoration:none;line-height:12px}
a.s_l:hover{border:#003366 1px solid;border-right:#dddddd 0px solid;background:#0063dc;color:#ffffff;text-decoration:none;line-height:12px}
a.s_r{border:#dddddd 1px solid;background:#ffffff;padding:4px 6px 2px 6px;text-decoration:none;line-height:12px}
a.s_r:hover{border:#003366 1px solid;background:#0063dc;color:#ffffff;text-decoration:none;line-height:12px}
input{border:#aaa 1px solid;width:65px;height:23px;padding:4px 6px 0px 6px;background:url(/img/20240304_www_wuming_ren_26.gif) no-repeat 95% center;}
.wuming_ren_1{position:relative;top:3px;}
.wuming_ren_2{position:relative;left:-3px;top:1px}
</style>
</head>
<body>
<a href="https://www.wuming.ren">武鸣人</a>,各种信息资源免费发布,分享励志语录经典短句,减肥健身常识,各种js特效代码。网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)<hr>
<!--欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。-->
<script type="text/javascript" src="https://www.wuming.ren/ad/tc.js"></script>
<script type="text/javascript" src="https://www.wuming.ren/ad/a.js"></script>
<span class="wuming_ren_1"><input type="text" value="请选择" onclick="se_www_wuming_ren(this)"></span>
<span class="wuming_ren_2" id="www_wuming_ren" style="display:none">
<a class="s_l" href="###">A</a><a class="s_l" href="###">B</a><a class="s_l" href="###">C</a><a class="s_l" href="###">D</a><a class="s_l" href="###">E</a><a class="s_l" href="###">F</a><a class="s_l" href="###">G</a><a class="s_l" href="###">H</a><a class="s_r" href="###">I</a>
</span>
<script language="javascript">
function se_www_wuming_ren(o){
var oobj=document.getElementById("www_wuming_ren")
if (oobj.style.display=="none"){
oobj.style.display=""
var obj=oobj.getElementsByTagName("a"),j=obj.length
for (var i=0;i<j;i++){
obj[i].onclick=function(){
o.value=this.innerHTML;
oobj.style.display="none"
}
}
}
else oobj.style.display="none"
}//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)
</script>
</body>
</html>


0
0
收藏0
回帖

下拉菜单横向弹出选项效果 期待您的回复!

取消
载入表情清单……
载入颜色清单……
插入网络图片

取消确定

图片上传中
编辑器信息
提示信息