爱易网
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 浏览次数:20367 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<body>区域中 <style type="text/css"> <!-- td { font-size: 12px; line-height: 150%} --> </style> <script language="JavaScript"> <!-- function hve_display(t_id,i_id){//显示隐藏程序 var t_id;//表格ID var i_id;//图片ID var on_img="http://img.aiyiweb.com/icon_indextool.gif";//打开时图片 var off_img="http://img.aiyiweb.com/icon_indextool.gif";//隐藏时图片 if (t_id.style.display == "none") {//如果为隐藏状态 t_id.style.display="";//切换为显示状态 i_id.src=on_img;}//换图 else{//否则 t_id.style.display="none";//切换为隐藏状态 i_id.src=off_img;}//换图 } //--> </script> <table width="500"> <tr> <td> <table width="200" border="0" cellspacing="1" cellpadding="0" bgcolor="#006699"> <tr bgcolor="#006699"> <td> </td> <td width="20"><img src="http://img.aiyiweb.com/icon_indextool.gif" width="17" height="14" name="img1" onClick="hve_display(table1,img1)" style="cursor: hand" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></td></tr> <!--图片的ID是img1,要隐藏的表格ID是table1,onclick调用hve_display程序;style设置鼠标为手型。--> </table> <table ID="table1" width="200" border="0" cellspacing="1" cellpadding="0" bgcolor="#006699" height="120"> <tr bgcolor="#FFFFFF"> <td bgcolor="#7AACFE"> </td> </tr> </table> <table width="200" border="0" cellspacing="1" cellpadding="0" bgcolor="#006699"> <tr bgcolor="#006699"> <td> </td> <td width="20"><img src="http://img.aiyiweb.com/icon_indextool.gif" width="17" height="14" name="img2" onClick="hve_display(table2,img2)" style="cursor: hand" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></td> </tr> </table> <table id="table2" width="200" border="0" cellspacing="1" cellpadding="0" bgcolor="#006699" height="120"> <tr bgcolor="#FFFFFF"> <td bgcolor="#7AACFE"> </td> </tr> </table> <table width="200" border="0" cellspacing="1" cellpadding="0" bgcolor="#006699"> <tr bgcolor="#006699"> <td> </td> <td width="20"><img src="http://img.aiyiweb.com/icon_indextool.gif" width="17" height="14" name="img3" onClick="hve_display(table3,img3)" style="cursor: hand" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></td> </tr> </table> <table id="table3" width="201" border="0" cellspacing="1" cellpadding="0" bgcolor="#006699" height="120"> <tr bgcolor="#FFFFFF"> <td bgcolor="#7AACFE"> </td> </tr> </table> <table width="200" border="0" cellspacing="1" cellpadding="0" bgcolor="#006699"> <tr bgcolor="#006699"> <td> </td> <td width="20"><img src="http://img.aiyiweb.com/icon_indextool.gif" width="17" height="14" name="img4" onClick="hve_display(table4,img4)" style="cursor: hand" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></td> </tr> </table> <table id="table4" width="200" border="0" cellspacing="1" cellpadding="0" bgcolor="#006699" height="120"> <tr bgcolor="#FFFFFF"> <td bgcolor="#7AACFE"> </td> </tr> </table> </td> </tr> </table> <a href="http://www.aiyiweb.com/js/">欢迎访问爱易网JS特效</a>
[Ctrl+A 全部选择 提示:
上一篇:狡猾的按钮特效
下一篇:拖动的超酷菜单
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
MIUI,有了它小米就无惧对手
微软史上最大规模裁员,一半诺基亚员工
微软最后的救命稻草Win 8份额继续上升
美国政府关门可能影响去哪儿等公司IPO
三星手机在国内陷入困境:华为中兴小米紧追
黑狐病毒疯传播 电脑管家首推 专杀工具
完美入股盛大:一桩各怀心事的交易
百度透露无人驾驶战略 研发三维交通地图
这一次,微软将带给我们什么惊喜?
推荐阅读
更多>
曝阿里巴巴一怀孕员工过劳死 加班情况引争议
中方抗议美方限购IT设备 紧张关系加剧
独立工具APP:为亿级用户的商业化而愁
玩游戏式的趣味戒烟App:Kwit
虚拟运营商们更像三大运营商的“二道贩子”
马云的SNS之梦有了新目标 收购“微博”
陈天桥之鉴:产品创新被扼杀那些事
微软确认 Surface 计划更多尺寸和LTE 版本
频繁自杀 折射媒体变革中的媒体人迷茫与压力并存
同为70前后人,马云为什么总是像外星人那么瘦
黑莓高管:黑莓能作为家“小众公司”活下来
传4G牌照国庆节前后发放 TD-LTE制式优先
TD是完成中国梦的一个契机
靠谱分析:6月发生的WWDC和谷歌I/O大会,将会出现哪些新产品?
固话上网卡或将实名制 运营商泄露用户信息将被罚
曹国伟:微博将关注Facebook和Twitter
全球五大电信设备商业绩:华为净利居首
首批四款“官方”打车软件发布:均为安卓版本
苹果收购Beats交易或将延期尚需解决5大问题
都是300元内 乐视盒子与小米盒子对比体验