爱易网
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 浏览次数:20357 次
以下是程序代码
<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树型导航菜单
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
HTC的三大迷惘:高管釜底抽薪 产品营销战略混乱
阿里国际化再落子:2.49亿美元投资新加坡邮政
200美元英特尔Android笔记本行将到来
一大波智能路由器正在袭来:小米、360、极路由大PK
估值增长9.8% 阿里IPO前市值达2450亿美元
百度对糯米来说到底意味着什么?
小微型IDC云化趋势加剧 云计算未来或现终极模式
三星石墨烯制备技术获突破
支付宝全面封杀比特币:充值码淘宝店或遭封禁
推荐阅读
更多>
传苹果中移动达成协议:新iPhone兼容TD制式
苹果大中华区业绩回暖 中移动贡献或低于预期
高通反垄断案下月有望落定
FDD牌照短期不会发放 联通电信暗自提速建网
国网公司将加快组建 业界人士称困难重重
特斯拉技术专利开放,要革自己的命?
网曝富士康500万iphone遭退货是确证的事
全球最具“颠覆性”特质的公司排行榜TOP25
网易微博将正式关闭 用户迁至轻博客LOFTER
代工厂生活危机:“富士康们”何去何从?
一大波智能路由器正在袭来:小米、360、极路由大PK
猎豹移动上市押海外市场 与小米有合作空间
诺基亚依托规模效应 猛攻国际市场空白
中移动五大基地将整改成公司:被指易滋生腐败
英特尔IDF峰会启示:释放移动互联的信号
传4G牌照国庆节前后发放 TD-LTE制式优先
马云的SNS之梦有了新目标 收购“微博”
扎克伯格华裔妻子首度亮相电视节目畅谈情史
App Store严禁推送广告 运用面临大清洗
高德百度地图免费背后:李彦宏暗斗马云周鸿祎