爱易网
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特效
js动感导航菜单
js动感导航菜单
日期:2014-05-18 浏览次数:20497 次
以下是程序代码
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <meta name="keywords" content="站长,网页特效,js特效,js脚本,脚本,广告代码,zzjs,zzjs.net,sky,www.zzjs.net,站长特效 网" /> <meta name="description" content="www.zzjs.net,站长特效网,站长必备js特效及广告代码。全力打造一流网页特效站!" /> <title>网页特效 js动感导航菜单 站长特效网</title> <style> .b{color=#000066;cursor:hand} .menu_wwwzzjsnet{ font-family:Arial; cursor:Default; font-size:12px; border:1px #000000 solid; border-collapse: collapse; filter:progid:DXImageTransform.Microsoft.Gradient(gradienttype=0, startcolorstr=#ffffff, endcolorstr=#dddddd) progid:DXImageTransform.Microsoft.Shadow(direction=135,color=#cccccc,strength=3); } .ht{ font-weight:bold } </style> <script> function CoolMenuControl(){ this.lastScrollX=0; this.lastScrollY=0; this.lastScrollW=0; this.lastScrollH=0; this.td_X=0; this.td_Y=0; this.td_W=0; this.td_H=0; this.td=0; this.mouseon=0; this.current=null this.hk_name; this.hktable_name; this.menudiv_name; this.menutable_name; this.ml=0; this.menuarray=new Array(); this.speed; this.href=""; //-----菜单项目--- function menuitem(type,value,url,target){ this.type=type this.value=value this.url=url this.target=target } //插入菜单--- this.insertmenu=function(type,value,url,target){ this.menuarray[this.menuarray.length]=new menuitem(type,value,url,target) }//欢迎来到站长特效网,我们的x网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。 //初试化--- this.init=function(name,bdc,bgc,speed,Alpha){ var inhtml="" var cellcount=0 var lastcellcount=0 this.hk_name=name+"hk" this.hktable_name=name+"hktable" this.menudiv_name=name+"menudiv" this.menutable_name=name+"menutable" this.speed=speed for (i=0;i<this.menuarray.length;i++) { if (this.menuarray[i].type=="2") cellcount=cellcount+1 if (this.menuarray[i].type=="1" || this.menuarray[i].type=="0") {cellcount=0} if (lastcellcount<cellcount) {lastcellcount++} } stylecode="cursor:hand;filter:Alpha(style=0,opacity="+Alpha+");background-color:"+bgc suspendcode="<DIV id="+this.hk_name+" style='POSITION:absolute;' onclick='"+name+".doClick()'>" +"<table id="+this.hktable_name+" border='1' width='0' cellspacing='0' style='border-collapse: collapse' bordercolor='"+bdc+"'>" +"<tr><td height='18' style='"+stylecode+"'></td></tr></table></div>"; document.write(suspendcode); var fcell=true for (i=0;i<this.menuarray.length;i++) {//欢迎来到站长特效网,我们的网址是www.zzjs .net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。 switch(this.menuarray[i].type) { case "0": t=cellcount*2 if (t<=0) { inhtml+='<tr><td colspan=2 class=ht onmouseover=\''+name+'.href="'+this.menuarray[i].url+','+this.menuarray[i].target+'"\'>'+this.menuarray[i].value } else { inhtml+='<tr><td colspan='+t+' class=ht onmouseover=\''+name+'.href="'+this.menuarray[i].url+','+this.menuarray[i].target+'"\'>'+this.menuarray[i].value } fcell=true break; case "1": t=(cellcount-1)*2 if (t<=0) { inhtml+='<tr><td width=6><td onmouseover=\''+name+'.href="'+this.menuarray[i].url+','+this.menuarray[i].target+'"\'>'+this.menuarray[i].value } else { i
上一篇:狡猾的按钮特效
下一篇:jquery简单淡入淡出菜单
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
虚拟运营商们更像三大运营商的“二道贩子”
这一次,微软将带给我们什么惊喜?
互联网情色众多 Facebook与9158态度大不同
世界杯让耐克阿迪大打出手 谁能劈开用户大脑?
揭秘:阿里巴巴“无人认领”的三成股权都归谁
谷歌安卓全球副总裁为何跳槽中国企业小米?
中方抗议美方限购IT设备 紧张关系加剧
估值增长9.8% 阿里IPO前市值达2450亿美元
欧洲6万人起诉Facebook隐私侵权
推荐阅读
更多>
9月1日起免征新能源汽车购置税
迪信通神秘免费服务揭谜底:充电宝免费带回家
HTC手机为何一败再败?效果出在供应链
史玉柱此刻离任:营销巨匠为新游戏炒作?
聚美优品获基石投资1.5亿美金,IPO吃下定心丸
首批四款“官方”打车软件发布:均为安卓版本
埃里克杰克森:阿里IPO估值至少1500亿美元
MIUI,有了它小米就无惧对手
网曝富士康“二连跳” 疑因推静音模式
玩游戏式的趣味戒烟App:Kwit
银河证券王锦炎:金融业如何使用大数据
国美在线叫板京东:李俊涛底气在哪?
支付宝钱包支持医保移动缴费 广州成首个试点
传苹果中移动达成协议:新iPhone兼容TD制式
中移动一季度净利大降:手机补贴增长过快
淘宝公布新规:升级售假卖家惩罚力度
为啥苹果定要出廉价iPhone?都是安卓逼的
苹果多色彩!葫芦里究竟卖的什么药
成本效益全兼顾 混合云市场前景显现
苹果App Store被大量刷榜:iTunes账号成帮凶