




免费预览已结束,剩余59页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
网页制作特效网页特效(1)导航菜单:仿网页特效观止首页栏目切换滑动门效果文件较多,查看演示请直接点击下面的 预览效果,下载该特效请点击上处链接下载(2)出发导航菜单:网页特效代码|JsCode.CN|-经典实用的触发型导航菜单.sec1 BORDER-RIGHT: gray 1px solid; BORDER-TOP: #ffffff 1px solid; BORDER-LEFT: #ffffff 1px solid; CURSOR: hand; COLOR: #000000; BORDER-BOTTOM: #ffffff 1px solid; BACKGROUND-COLOR: #eeeeee.sec2 BORDER-RIGHT: gray 1px solid; BORDER-TOP: #ffffff 1px solid; FONT-WEIGHT: bold; BORDER-LEFT: #ffffff 1px solid; CURSOR: hand; COLOR: #000000; BACKGROUND-COLOR: #d4d0c8.main_tab BORDER-RIGHT: gray 1px solid; BORDER-LEFT: #ffffff 1px solid; COLOR: #000000; BORDER-BOTTOM: gray 1px solid; BACKGROUND-COLOR: #d4d0c8 function secBoard(n) for(i=0;isecTable.cells.length;i+) secTable.cellsi.className=sec1; secTable.cellsn.className=sec2; for(i=0;imainTable.tBodies.length;i+) mainTable.tBodiesi.style.display=none; mainTable.tBodiesn.style.display=block; 关于TBODY标记 关于cells集合 关于tBodies集合 关于display属性 指定行做为表体。注释:TBODY要素是块要素,并且需要结束标签。即使如果表格没有显式定义TBODY要素,该要素也提供给所有表。参考:动态HTML参考和开发应用大全(人民邮电出版社 Microsoft Corporation著 北京华中兴业科技发展有限公司译) 检索表行或者整个表中所有单元格的集合。应用于TR、TABLE。参考:动态HTML参考和开发应用大全(人民邮电出版社 Microsoft Corporation著 北京华中兴业科技发展有限公司译) 检索表中所有TBODY对象的集合。对象在该集合中按照HTML源顺序排列。应用于TABLE。参考:动态HTML参考和开发应用大全(人民邮电出版社 Microsoft Corporation著 北京华中兴业科技发展有限公司译) 设置或者检索对象是否被提供。可能的值为block、none、inline、list-item、table-header-group、table-footer-group。该特性可读写,块要素默认值为block,内联要素默认值为inline;层叠样式表(CSS)属性不可继承。参考:动态HTML参考和开发应用大全(人民邮电出版社 Microsoft Corporation著 北京华中兴业科技发展有限公司译)点击此处可参阅微软MSDN在线上的解释。 ;/TABLE>(3)下拉菜单:网页特效代码|JsCode.CN|-非常棒的绿色下拉透明菜单var mmenus = new Array();var misShow = new Boolean(); misShow=false;var misdown = new Boolean();misdown=false;var mnumberofsub=0;var musestatus=false;var mpopTimer = 0;mmenucolor=#89CB10;mfontcolor=MenuText;mmenuoutcolor=#ADEF34;mmenuincolor=#B5E74E;mmenuoutbordercolor=#ECFA3A;mmenuinbordercolor=#5A2614;mmidoutcolor=#A9DA1D;mmidincolor=#799310;mmenuovercolor=#004080;mitemedge=0;msubedge=1;mmenuunitwidth=66;mmenuitemwidth=140;mmenuheight=25;mmenuwidth=100%;mmenuadjust=0;mmenuadjustV=0;mfonts=font-family: 宋体; font-size: 9pt; color: MenuText; ;mcursor=hand;var swipeSteps = 4;var swipemsec = 25;var swipeArray = new Array();function swipe(el, dir, steps, msec) if (steps = null) steps = swipeSteps;if (msec = null) msec = swipemsec;if (el.swipeIndex = null)el.swipeIndex = swipeArray.length;if (el.swipeTimer != null)window.clearTimeout(el.swipeTimer);swipeArrayel.swipeIndex = el;el.style.clip = rect(-99999, 99999, 99999, -99999);if (el.swipeCounter = null | el.swipeCounter = 0) Left = el.offsetLeft;Top = el.offsetTop;Width = el.offsetWidth;Height = el.offsetHeight;el.swipeCounter = steps;el.style.clip = rect(0,0,0,0);window.setTimeout(repeat( + dir + , + el.swipeIndex + , + steps + , + msec + ), msec);function repeat(dir, index, steps, msec) el = swipeArrayindex;var left = Left;var top = Top;var width = Width;var height = Height;if (el.swipeCounter = 0) el.style.clip = rect(-99999, 99999, 99999, -99999);return;else el.swipeCounter-;el.style.visibility = visible;switch (dir) case 2:el.style.clip = rect( + height*el.swipeCounter/steps + , + width + , + height + , + 0 + );el.style.top = top - height*el.swipeCounter/steps;break;case 8:el.style.clip = rect( + 0 + , + width + , + height*(steps-el.swipeCounter)/steps + , + 0 + );el.style.top = top + height*el.swipeCounter/steps;break;case 6:el.style.clip = rect( + 0 + , + width + , + height + , + width*(el.swipeCounter)/steps + );el.style.left = left - width*el.swipeCounter/steps;break;case 4:el.style.clip = rect( + 0 + , + width*(swipeSteps - el.swipeCounter)/steps + , + height + , + 0 + );el.style.left = left + width*el.swipeCounter/steps;break;el.swipeTimer = window.setTimeout(repeat( + dir + , + index + , + steps + , + msec + ), msec);var mtmpleft=;var mtmptop=;function hideSwipe(el) window.clearTimeout(el.swipeTimer);el.style.visibility = hidden;el.style.clip = rect(-99999, 99999, 99999, -99999);el.swipeCounter = 0;if(mtmpleft!=)el.style.left = mtmpleft;if(mtmptop!=)el.style.top = mtmptop;function stoperror()return true;window.onerror=stoperror;function mpopOut() mpopTimer = setTimeout(mallhide(), 500);function getReal(el, type, value) temp = el;while (temp != null) & (temp.tagName != BODY) if (eval(temp. + type) = value) el = temp;return el;temp = temp.parentElement;return el;function mMenuRegister(menu) mmenusmmenus.length = menu return (mmenus.length - 1)function mMenuItem(caption,command,target,isline,statustxt,level,img,sizex,sizey,pos)this.items = new Array();this.caption=caption;mand=command;this.target=target;this.isline=isline;this.statustxt=statustxt;if(level!=null)mnumberofsub+;this.hasc=mnumberofsub;this.level=level;this.img=img;this.sizex=sizex;this.sizey=sizey;this.pos=pos;function mMenu(caption,command,target,img,sizex,sizey,pos)this.items = new Array();this.caption=caption;mand=command;this.target=target;this.img=img;this.sizex=sizex;this.sizey=sizey;this.pos=pos;this.id=mMenuRegister(this);function mMenuAddItem(item) this.itemsthis.items.length = item item.parent = this.id; this.children=true;mMtotype.addItem = mMenuAddItem;mMenuItotype.addsubItem = mMenuAddItem;function mtoout(src)src.style.borderLeftColor=mmenuoutbordercolor;src.style.borderRightColor=mmenuinbordercolor;src.style.borderTopColor=mmenuoutbordercolor;src.style.borderBottomColor=mmenuinbordercolor;src.style.backgroundColor=mmenuoutcolor;src.style.color=mmenuovercolor;function mtoin(src)src.style.borderLeftColor=mmenuinbordercolor;src.style.borderRightColor=mmenuoutbordercolor;src.style.borderTopColor=mmenuinbordercolor;src.style.borderBottomColor=mmenuoutbordercolor;src.style.backgroundColor=mmenuincolor;src.style.color=mmenuovercolor;function mnochange(src)src.style.borderLeftColor=mmenucolor;src.style.borderRightColor=mmenucolor;src.style.borderTopColor=mmenucolor;src.style.borderBottomColor=mmenucolor;src.style.backgroundColor=;src.style.color=mfontcolor;function mallhide()for(var nummenu=0;nummenummenus.length;nummenu+)var themenu=document.allmMenu+nummenuvar themenudiv=document.allmmenudiv+nummenu mnochange(themenu); mmenuhide(themenudiv); for(nummenu=1;nummenudocument.body.clientWidth+document.body.scrollLeft)menuid.style.left=document.body.clientWidth+document.body.scrollLeft-mmenuitemwidth;mtmpleft=menuid.style.left;mtmptop=menuid.style.top;swipe(menuid,2,4);misShow=true;function mshowsubmenu(menuid,pid,rid)menuid.style.filter=Alpha(Opacity=80);menuid.style.left=pid.offsetWidth+rid.offsetLeft;menuid.style.top=pid.offsetTop+rid.offsetTop-3;if(mmenuitemwidth+parseInt(menuid.style.left)document.body.clientWidth+document.body.scrollLeft)menuid.style.left=document.body.clientWidth+document.body.scrollLeft-mmenuitemwidth;menuid.style.visibility=visible;function mmenu_over(menuid,x)toel = getReal(window.event.toElement, className, coolButton);fromel = getReal(window.event.fromElement, className, coolButton);if (toel = fromel) return;if(x0) misShow = false; mallhide(); mtoout(eval(mMenu+x);else mallhide(); mtoin(eval(mMenu+x); mmenushow(menuid,eval(mMenu+x);clearTimeout(mpopTimer);function mmenu_out(x)toel = getReal(window.event.toElement, className, coolButton);fromel = getReal(window.event.fromElement, className, coolButton);if (toel = fromel) return;if (misShow)mtoin(eval(mMenu+x);elsemnochange(eval(mMenu+x);mpopOut()function mmenu_down(menuid,x) if(misShow) mmenuhide(menuid); mtoout(eval(mMenu+x); else mtoin(eval(mMenu+x); mmenushow(menuid,eval(mMenu+x); misdown=true; function mmenu_up() misdown=false;function mmenuitem_over(menuid,item,x,j,i)toel = getReal(window.event.toElement, className, coolButton);fromel = getReal(window.event.fromElement, className, coolButton);if (toel = fromel) return;srcel = getReal(window.event.srcElement, className, coolButton); for(nummenu=1;nummenu=thesub.style.tag) msubmenuhide(thesub); mnochange(document.allmp+nummenu); document.allmitem+nummenu.style.color=mfontcolor; if(item)document.allmitem+item.style.color=mmenuovercolor;if(misdown|item)mtoin(srcel);elsemtoout(srcel);if(x=-1)mthestatus=eval(msub+j).itemsi.statustxt;if(j=-1)mthestatus=mmenusx.itemsi.statustxt;if(mthestatus!=)musestatus=true;window.status=mthestatus;clearTimeout(mpopTimer);function mmenuitem_out(hassub)toel = getReal(window.event.toElement, className, coolButton);fromel = getReal(window.event.fromElement, className, coolButton);if (toel = fromel) return;srcel = getReal(window.event.srcElement, className, coolButton);if(!hassub)mnochange(srcel);if(musestatus)window.status=;mpopOut()function mmenuitem_down()srcel = getReal(window.event.srcElement, className, coolButton);mtoin(srcel)misdown=true;function mmenuitem_up()srcel = getReal(window.event.srcElement, className, coolButton);mtoout(srcel)misdown=false;function mexec3(j,i)var cmd;if(eval(msub+j).itemsi.target=blank) cmd = window.open(+eval(msub+j).mand+);else cmd = eval(msub+j).itemsi.target+.location=+eval(msub+j).mand+;eval(cmd);function mexec2(x)var cmd;if(mmenusx.target=blank) cmd = window.open(+mand+);else cmd = mmenusx.target+.location=+mand+;eval(cmd);function mexec(x,i)var cmd;if(mmenusx.itemsi.target=blank) cmd = window.open(+mand+);else cmd = mmenusx.itemsi.target+.location=+mand+;eval(cmd);function mbody_click()if (misShow)srcel = getReal(window.event.srcElement, className, coolButton);for(var x=0;x=m
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年贵州省办公厅遴选公务员试题(附答案+解析)
- 高中政治必修二课件教学
- 2025年新能源汽车制造技术标准与创新体系研究报告
- 2025年文化产业园产业集聚与服务体系构建中的文化产业发展政策支持研究报告
- 2025年无人机物流配送行业人才需求与培养策略研究报告
- 2025青海省初级档案职称考试(档案基础理论知识)强化训练试题及答案
- 泰来一中月考试题及答案
- 太原铁路局工务段考试题库及答案
- 2026届新疆生产建设兵团四校化学高一上期末学业水平测试试题含解析
- 2025年企业内部涉密资料存储与保密责任合同
- 2025届安徽省高三一轮复习模拟卷化学试题(解析版)
- 机关食堂2025年多元化饮食选择方案
- T-ZJBS 001-2024 城市公共标识系统设计规范
- 2025年租住合同模板电子版
- 人工智能应用开发合同
- QCC降低用药错误率护理品管圈
- 原料溯源管理制度内容
- 医院意识形态培训课件
- 饮品店培训合同范例
- 2.1 化学反应速率 第二课时 影响化学反应速率的因素 基础练习 【新教材】人教版(2019)高中化学选择性必修一
- 2024年计算机等级考试一级计算机基础及MS Office应用试题与参考答案
评论
0/150
提交评论