宝哥软件园

jQuery实现左右切换焦点图

编辑:宝哥软件园 来源:互联网 时间:2021-09-09

演示图:

代码:

$(文档)。ready(function(){ greyInitRedux();iedropdownav();ieDropdownsFilter();itemViewer();jsTabsetInit();slider();标题选项卡();carousel();emergencyClose();replyLinks();adjournLinks();zebra _ strip _ rows();visitor _ site _ slideshowvar carousel _ round=0;/* -灰色初始值-*/函数greyInitRedux(){ $('输入。填充,文本区域.填充').focus(function(e){ if(this。值==这个。DefaultValue){ $(this)).removeClass(“”填充');this.value=} $(这个)。模糊(函数{如果(这个。值==这个。DefaultValue){ $(this).addClass(')填充');} else if(这个。value==' '){ this。值=这个。DefaultValue$(这个)。addClass(')填充');} });})}/*-IE6 CSS Main Nav下拉菜单-*/function iedropdownav(){ if(document。所有文件。getelementbyid){ Nav root=document。getelementbyid(' Main-Nav ');if(!nav root){ return false;} for(I=0;在vroot。子节点。长度;I){ node=Navroot。子节点[I];if(节点。nodename=' LI '){ node。onmouseover=function(){ this。类名=' over}节点。onmouseout=function(){ this。类名=这个。类名。替换(' over ',' ');} } } } } } }/*-IE6 CSS Main Nav下拉菜单-*/function ieDropdownsFilter(){ if(document。所有文件。getelementbyid){ Nav root=document。getelementbyid(' filter-drop ');if(!nav root){ return false;} for(I=0;在vroot。子节点。长度;I){ node=Navroot。子节点[I];if(节点。nodename==' DIV '){ node。onmouseover=function()}

更多资讯
游戏推荐
更多+