爱易网
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 浏览次数:20376 次
以下是程序代码
<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树型导航菜单
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
高通反垄断案下月有望落定
二代 iPad Air将配备2GB内存?为同屏多任务做准备
顺丰O2O便利店将正式启动:涉及金融服务
解读苹果收购Beats背后动机:库克在想什么?
迪信通神秘免费服务揭谜底:充电宝免费带回家
任正非:喜马拉雅山的水为什么不能流入亚马逊河?
火狐手机发展前路:或被运营商绑架
广东移动高层受调查 中移动或现更大反腐风暴
蜗牛移动董事长石海:号卡被叫停属乌龙事件
推荐阅读
更多>
富士康人事故骚动方寸 不惜血本下注电商
“宽带中国”计划已正式上升为国家战略
O2O成"唐僧肉":百度糯米抢食第一口令阿里腾讯颤抖
成本效益全兼顾 混合云市场前景显现
同程旅游融资后变土豪 如何烧钱占领市场?
中电信国际漫游费下调85% 世界杯上网28元/天
刘强东向总理建言:打击有组织有规模的售假商家
柳传志马云陷舆论漩涡:请不要辜负这个时代
从3G牌照发放看中国4G规划效果
电信设备商淘金中国4G:华为中兴领衔
迅雷欲3300万美元收购金山快盘 预计9月完成
盛大游戏走向衰落的根源:免费游戏模式惹的祸
新闻早8点》Facebook失手发布Snapchat类应用
谷歌欲收买WhatsApp添加砝码 对方否认
分析称iPhone 6明年初发布 屏幕变为4.8吋
传三星为赢得新兴市场:推廉价版Note3
美国电影协会在华起诉迅雷侵权 要求赔偿并道歉
全球五大电信设备商业绩:华为净利居首
NoomWeight减肥
诺基亚称不会更名“微软移动” 5月还将发布新品