网页特效
建站首页
|
广告代码
|
源码下载
|
站长工具
|
字体下载
|
网页模板
|
收藏本站
|
设为首页
网站首页
菜单导航
日期时间
背景图像
图层样式
鼠标键盘
页面窗口
色彩表格
链接文字
表单按钮
计数转换
游戏娱乐
综合实例
特效
热门搜索:
特效代码
js脚本
导航菜单
热点推荐:
英文字体
人民币汇率
dw插件
站长常用软件
alexa排名查询
您的位置:
网页特效
->
综合实例
-> 漂亮滑动门效果
漂亮滑动门效果
作者:admin 发布时间:2009-11-22 10:28:52 发布人: admin
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>漂亮滑动门效果,jz123.cn收集。</title> <style type="text/css"> body { font-size:12px; } .normal { list-style: none; float: left; padding: 5px 2px 2px 2px; width: 90px; text-align :center ; vertical-align :middle ; cursor :pointer ; border-bottom :solid 1px #9cd9f5; border-right :solid 1px #9cd9f5; background-color: #dee7f5; border-collapse :separate ; } .selected { list-style: none; float: left; padding: 5px 2px 2px 2px; width: 90px; text-align :center ; vertical-align :middle ; cursor :pointer ; border-bottom :solid 0px #9cd9f5; border-right :solid 1px #9cd9f5; background-color:#f8f8f8 ; } #divMainTab { border-left :solid 1px #9cd9f5; border-top :solid 1px #9cd9f5; float:left; margin: 0px; padding: 0px } .divContent { width: 474px; height: 400px; clear: both; border-bottom: solid 1px #9cd9f5; border-left: solid 1px #9cd9f5; border-right: solid 1px #9cd9f5; } a{ text-decoration: none; color: #00ccff; } a:hover { text-decoration: underline; color: #cc0000; } </style> <script language="javascript" type="text/javascript"> function changeTab(index) { for (var i=1;i<=5;i++) { document.getElementById ("li_"+i).className ="normal"; document.getElementById ("li_"+index).className ="selected"; document.getElementById ("div"+i).style.display ="none"; } document.getElementById ("div1").innerText= "www.bankcha.com"+index; document.getElementById ("div"+index).style.display ="block"; } </script> </head> <body> <form id="form1" runat="server"> <div> <div id="divMainTab"> <ul style="list-style: none; margin: 0px; padding: 0px; border-collapse: collapse;"> <li id="li_1" class="selected" onmouseover="changeTab('1')"><a href="#">银行网点1</a> </li> <li id="li_2" class="normal" onmouseover="changeTab('2')"><a href="#">银行网点2</a> </li> <li id="li_3" class="normal" onmouseover="changeTab('3')"><a href="#">银行网点3</a> </li> <li id="li_4" class="normal" onmouseover="changeTab('4')"><a href="#">银行网点4</a> </li> <li id="li_5" class="normal" onmouseover="changeTab('5')"><a href="#">银行网点5</a> </li> </ul> </div> <div id="div1" style="display :block" class="divContent"> 1号,www.bankcha.com </div> <div id="div2" style="display :none" class="divContent"> 2号,www.bankcha.com </div> <div id="div3" style="display :none" class="divContent"> 3号,www.bankcha.com </div> <div id="div4" style="display :none" class="divContent"> 4号,www.bankcha.com </div> <div id="div5" style="display :none" class="divContent"> 5号,www.bankcha.com </div> </div> </form> </body> </html>
漂亮滑动门效果,模仿163主新闻区的。
将本文收藏到QQ书签与更多好友分享
上一篇:文章:
漂亮的烟花特效
下一篇:文章:
window.close() 直接关闭页面
本类浏览排行 »
搜索页面中的内容
又一款综合搜索引擎代码
标题栏显示当前时间
倒影效果的电子表,显示当前时间
自动记录当前页面最新的更新日期
JS让网页每隔2秒弹出一次对话框
一款超酷的CSS列表排行榜
鼠标悬停放大的纯CSS分页效果
本站推荐文章 »
垂直三栏自适应等高布局
仿QQ消息管理器的文本内容样式
支付宝的控制台动画效果菜单
文字、图片拖曳移动
可拉伸移动的DIV层效果
很酷的图片伸缩放大功能
较好的视觉效果的网页选项卡
CSS实例:通过定义渐变边框给图片加阴影