爱易网
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 浏览次数:20353 次
以下是程序代码
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>非常酷的五星展开菜单显示效果</title> </head> <body> <style type="text/css"> .dot { position: absolute; width: 6; height: 6; visibility: hidden; background-color: red; font-size: 1px; cursor: pointer; cursor: hand; z-index: 100 } .dotoff { position: absolute; width: 6; height: 6; visibility: hidden; background-color: gray; font-size: 1px; cursor:default; z-index: 100} .dotempty { position: absolute; width: 6; height: 6; visibility: hidden; background-color: orange; font-size: 1px; cursor: pointer; cursor: hand; zindex: 100 } .caption { position: absolute; visibility: hidden; font-family: Tahoma; color: black; font-size: 11px; text-align: Center; cursor: default; z-index: 1 } body { margin: 0px; background-color: white; } a { color: silver; text-decoration: none } p { font-size: 10px; font-family: tahoma; color: black } </style> <script language="JavaScript" type="text/javascript"> function lib_bwcheck(){ //Browsercheck (needed) this.ver=navigator.appVersion this.agent=navigator.userAgent this.dom=document.getElementById?1:0 this.opera5=this.agent.indexOf("Opera 5")>-1 this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0; this.ie4=(document.all && !this.dom && !this.opera5)?1:0; this.ie=this.ie4||this.ie5||this.ie6 this.mac=this.agent.indexOf("Mac")>-1 this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5) return this } var bw=new lib_bwcheck() // The code of this script is in the body, the browsercheck above is not used. </script> <script language="javascript1.2" type="text/javascript"> <!-- // DotMenu // provides cross-browser functionality //====================================== function getObjectRef(name) { if(document.getElementById) return document.getElementById(name); else if(document.all) return document.all[name]; else return null; } // general functions to assist the script //======================================== function show(name) { var el = getObjectRef(name); if(el) el.style.visibility = "visible"; } function hide(name) { var el = getObjectRef(name); if(el) el.style.visibility = "hidden"; } function getWidth(name) { var el = getObjectRef(name); return el.offsetWidth; } function getHeight(name) { var el = getObjectRef(name); return el.offsetHeight; } function moveMe(name,x,y) { var el = getObjectRef(name); if(el) { el.style.top = parseInt(y); el.style.left = parseInt(x); } } function moveBy(name,x,y) { var el = getObjectRef(name); if(el) { el.style.top = parseInt(el.style.top) + parseInt(y); el.style.left = parseInt(el.style.left) + parseInt(x); } } // Creates the menu objects //========================== var menuCount = 0; function menuObject(name,x,y,caption, r, parent) { if ( (!document.getElementById&&!document.all) || navigator.userAgent.indexOf("Opera")>-1) return; document.write('<div id="divDot' + menuCount + '" class="dotempty" style="top: ' + y + '; left: ' + x + '"></div>'); document.write('<div id="divCap' + menuCount + '" class="caption" style="top: 0; left: 0">' + caption + '</div>
上一篇:狡猾的按钮特效
下一篇:无限级可刷新Js树型导航菜单
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
微软不会被颠覆
《归来》遭视频网盗播 乐视网状告小米盒子侵权
阿里巴巴上市后雅虎将面临更大的业绩压力
传搜狗估值12亿美元 与360谈判进入白热化
NoomWeight减肥
三星手机在国内陷入困境:华为中兴小米紧追
联发科享用价钱战 专利难以摆脱高通
云智慧:用大数据实现企业应用性能管理
苹果MacBook Air劣势渐显 或推新产品改变命运
推荐阅读
更多>
戴尔正告继续上市存风险 称黑石伊坎方案有缺乏
虚拟运营商流量不清零吸引用户 盈利待明
虚拟运营商温度有多高?降温OR升温内外有别
欧盟控诉苹果在爱尔兰非法进行税收交易
独立工具APP:为亿级用户的商业化而愁
佳能利润大跌三成 智能终端倒逼相机厂商转型
任正非:喜马拉雅山的水为什么不能流入亚马逊河?
聚美优品获基石投资1.5亿美金,IPO吃下定心丸
微软史上最大规模裁员,一半诺基亚员工
携程收买酷讯成定局:转型互联网+投资
QQ空间与微信龟兔赛跑,商业生态链陷入死循环
阿里收购UC 五年姻缘换来移动新格局
窗口期:还有哪些互联网公司可能今年IPO?
惠普董事长莱恩辞职 为巨额财务减记埋单
史上最严电话实名制9月实行 三大难题待解
看,网络文学今日之繁盛;忆,纯真去哪了?
特斯拉技术专利开放,要革自己的命?
网络视频的几大趋势将成视频玩家躲不开的发力点
靠谱分析:6月发生的WWDC和谷歌I/O大会,将会出现哪些新产品?
Skype周年:与微软联姻到底有没有未来?