爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
一个带详细描述的表单效果的菜单
一个带详细描述的表单效果的菜单
日期:2014-05-18 浏览次数:20163 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
要完成此效果把如下代码加入到<body>区域中 <script language="JavaScript"> <!-- function go_to_station(){ if (document.stationform.stationselect.options[0].selected){ window.location.href = "http://www.1.com";} else if (document.stationform.stationselect.options[1].selected) { window.location.href = "http://www.2.com";} else if (document.stationform.stationselect.options[2].selected) { window.location.href = "http://www.3.com";} else if (document.stationform.stationselect.options[3].selected) { window.location.href = "http://4.com";} else if (document.stationform.stationselect.options[4].selected) { window.location.href = "http://5.com";} else if (document.stationform.stationselect.options[5].selected) { window.location.href = "http://6.com";} else if (document.stationform.stationselect.options[6].selected) { window.location.href = "http://7.com";} else if (document.stationform.stationselect.options[7].selected) { window.location.href = "http://8.com";} return true; } //This is were you load the Discription and the Author function textValue(){ if (document.stationform.stationselect.options[0].selected){ document.stationform.disc.value = "这是一的内容" document.stationform.author.value = "【1】";} else if (document.stationform.stationselect.options[1].selected) { document.stationform.disc.value = "这是二的内容" document.stationform.author.value = "【2】";} else if (document.stationform.stationselect.options[2].selected) { document.stationform.disc.value = "这是三的内容" document.stationform.author.value = "【3】";} else if (document.stationform.stationselect.options[3].selected) { document.stationform.disc.value = "这是四的内容" document.stationform.author.value = "【4】";} else if (document.stationform.stationselect.options[4].selected) { document.stationform.disc.value = "这是五的内容" document.stationform.author.value = "【5】";} else if (document.stationform.stationselect.options[5].selected) { document.stationform.disc.value = "这是六的内容" document.stationform.author.value = "【6”】";} else if (document.stationform.stationselect.options[6].selected) { document.stationform.disc.value = "这是七的内容" document.stationform.author.value = "【7】";} else if (document.stationform.stationselect.options[7].selected) { document.stationform.disc.value = "这是八的内容" document.stationform.author.value = "【8】";} return true; } //--> </script> <form name="stationform"> <table align="center"> <TBODY> <tr> <td><select class="yk9" multiple name="stationselect" onchange="textValue()" size="8"> <option>站点一</option> <option>站点二</option> <option>站点三</option> <option>站点四</option> <option>站点五</option> <option>站点六</option> <option>站点七</option> <option>站点八</option
上一篇:狡猾的按钮特效
下一篇:页面内部导航
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
公信力消失:马航事件社交媒体传播之痛
刘强东向总理建言:打击有组织有规模的售假商家
微博启动自媒体计划 粉丝+收入双激励是亮点
OPPO Find7体验测 Find7综测
为啥苹果定要出廉价iPhone?都是安卓逼的
Docker Desktop 4.11 发布:支持虚拟桌面、Mac 权限更改和新扩展
用户喊话当当网:我彻底把你们丢弃了
苹果股价突破100美元大关:投资者看好iPhone 6
孙正义入股阿里往事还原:阿里巴巴并非软银首选
推荐阅读
更多>
富士康人事故骚动方寸 不惜血本下注电商
腾讯微信昨晚再现大规模故障 多地受到影响
苹果20年以来首次发债 融资170亿美元
为啥苹果定要出廉价iPhone?都是安卓逼的
广电总局回应美剧下架:不是所有信息可公开
三星已经将Galaxy S5视为失败之作?
中国移动承诺再降4G资费 网络漫游至50个国家
华为野心布局未来:投资研发5G对赌1毫秒连接
568倍PE,“长跑者”亚马逊的高估值之谜
估值增长9.8% 阿里IPO前市值达2450亿美元
全球网络遭史上最大规模攻击:攻击数据每秒300G
全球五大电信设备商业绩:华为净利居首
小米打响手机价格战 为米3铺路或另有所图
雷军收买腾讯金山股份:持股比例升至27%
墨迹天气:产品创新以攻为守方能对抗巨头
盘点改变社会的15种科技:谷歌眼镜将使我们成为半机械人
美图手机2问世 三大问题令其市场销量堪忧
苏宁双线同价遇难题:第一个吃螃蟹不轻松
苹果MacBook Air劣势渐显 或推新产品改变命运
美国政府关门可能影响去哪儿等公司IPO