爱易网
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 浏览次数:20273 次
以下是程序代码
<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简单淡入淡出菜单
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
诺基亚仍是第二大手机商:功用机有利可图
央行暂停二维码支付及虚拟信用卡 支付宝微信不知情
杨元庆去年总薪酬1.33亿元
中国移动4G资费调整方案6月1日起正式实施
谷歌安卓全球副总裁为何跳槽中国企业小米?
“宽带中国”计划已正式上升为国家战略
小米移动芯片:英伟达退出,终会加强与联发科合作
马云寄厚望于物流 “菜鸟”行情暂难持续
优酷土豆携手新浪微博 谋攻移动视频失地
推荐阅读
更多>
用友软件股价逆势下跌 再融资方案现曙光
史上最严电话实名制9月实行 三大难题待解
历史惊人相似:如今的库克 曾经的鲍尔默
谷歌安卓全球副总裁为何跳槽中国企业小米?
火一把就死: 百度魔图验证社交游戏衰亡宿命
FB上广告费用昂贵而且效果不及Twitter
分析称iPhone 6明年初发布 屏幕变为4.8吋
小米发明的“低价抢购”模式还能管用多久?
湖南卫视扶持芒果TV杀入媒体:版权独播不分销
腾讯再次重申:普通微信誉户相对不收费
靠谱分析:6月发生的WWDC和谷歌I/O大会,将会出现哪些新产品?
京东终于想明白,这些年错过的财运,都藏在女人的时装下
马云的SNS之梦有了新目标 收购“微博”
靠价格战赚取资费套餐利润差,虚拟运营商必死无疑
锐迪科将以9.25美元/ADS价钱出售835万份ADS
解析2014年阿里百度等五大互联网巨头深度布局
盛大游戏走向衰落的根源:免费游戏模式惹的祸
电信资费新政:三巨头压力大 短期降价仍有争议
迅雷高管解读财报:收购快盘可快速融入小米
史玉柱谈创业:5大建议 失败的教训最真实