爱易网
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 浏览次数:20194 次
以下是程序代码
<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
上一篇:不错的js右键弹出菜单
下一篇:jquery简单淡入淡出菜单
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
二代 iPad Air将配备2GB内存?为同屏多任务做准备
搜狐与奇虎360或结盟对抗BAT
Facebook财报前瞻:投资者仍信心不足
凑足了升级ios8所需要的5.7G空间,没料到“苹果”却变成“板砖”,iOS8还能一起愉快玩耍吗?
微信收费形式三选一 腾讯或变身运营商
让一让,小米4来了,碰见米粉请务必绕道走!
网络文学竞争白热化 百度多酷文学网上线
优酷土豆携手新浪微博 谋攻移动视频失地
国内云服务商存在尴尬:“远程机房+移动大硬盘”模式
推荐阅读
更多>
据消息传百度将要控股携程 整合去哪儿
搜狐前副总编何毅加盟乐视 任车联网公司CEO
微信收费形式三选一 腾讯或变身运营商
中国首台比特币ATM登陆上海 可购买不可兑换现钞
安全服务机构:公布2014年度最糟糕的25个密码
英特尔涉嫌垄断 欧盟或开出史上最高罚单
“论文查重”网店一月收入竟过百万
中移动将推出多项4G资费新政
苹果6月20日发布iPhone5S 触摸屏概念股生动
神州电脑中止IPO面前:再被质疑财务造假
FDD牌照短期不会发放 联通电信暗自提速建网
公信力消失:马航事件社交媒体传播之痛
快递企业征收“份子钱” 成全了谁 苦了谁?
传三星为赢得新兴市场:推廉价版Note3
亚马逊Fire Phone:请别拿我跟苹果三星比
工信部或本月17日向联通电信颁发FDD牌照
在线音乐出现“小米公司”不是没有可能
网络音乐非片面收费 高晓松时间表难完成
诺基亚称不会更名“微软移动” 5月还将发布新品
为啥苹果定要出廉价iPhone?都是安卓逼的