爱易网
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 浏览次数:20264 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
要完成此效果把如下代码加入到<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
上一篇:狡猾的按钮特效
下一篇:页面内部导航
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
富士康人事故骚动方寸 不惜血本下注电商
小米2S试水高端化 纯“性价比”玩法已成过去式
P2P平台科迅网疑“跑路” 涉及金额超2700万
首个释放出搅局房地产信号的互联网公司不是小米而是58同城
亚马逊宣布新春大促策略 欲打造另一个"黑五"
智能手机:中国手机市场最受关注十五款产品清点
微软小冰复活再战移动端:改与米聊、易信和触宝合作
途牛旅游网今晚挂牌纳斯达克 融资1亿美元
三星维修新规:Galaxy S4主板进水也收费修
推荐阅读
更多>
锐迪科将以9.25美元/ADS价钱出售835万份ADS
华为野心布局未来:投资研发5G对赌1毫秒连接
iOS7拖累iPad 5、iPad mini2发布 传十月份推出
刘强东向总理建言:打击有组织有规模的售假商家
高通反垄断案下月有望落定
戴尔正告继续上市存风险 称黑石伊坎方案有缺乏
阿朗力避步北电后尘 急切停止自我革新
用友软件股价逆势下跌 再融资方案现曙光
史玉柱卸任巨人网络CEO 继位人选引猜想
清点:罗永浩推锤子ROM 小米打法遭模拟
银河证券王锦炎:金融业如何使用大数据
苹果大中华区业绩回暖 中移动贡献或低于预期
特斯拉将获上海免费牌照 充电桩面临双重标准
墨迹天气:产品创新以攻为守方能对抗巨头
TD是完成中国梦的一个契机
iPhone 6 Plus要召回是谣言
“世界杯+618”集体磨刀的本质是绑架全民
O2O成"唐僧肉":百度糯米抢食第一口令阿里腾讯颤抖
国美痛批网购七宗罪 用短暂盈利输了未来
国网公司将加快组建 业界人士称困难重重