javascript渐变显示的雅虎中国选项卡效果代码 时间:2020-05-12 人气:0 y <script language="javascript"> var waitInterval; var mouseDelayTime = 200; /*选项窗*/ function tabWinMouseOver(tabWinObj,tabWinTotal,obj) { window.clearTimeout(waitInterval); waitInterval=window.setTimeout("ChangeDiv3('"+tabWinObj+"',"+tabWinTotal+","+obj.id+")",mouseDelayTime) } function ChangeDiv3(tabWinObj,tabWinTotal,obj) { var n,itemNum; for(var i=1;i= 4){n = itemNum - 3;}else{n = itemNum}; if(itemNum < 4) { tabPatabs1.className = "TabTitle tabWinAtive"+n; tabPatabs2.className = "TabTitle tabWinNormal"; }else{ tabPatabs1.className = "TabTitle tabWinNormal"; tabPatabs2.className = "TabTitle tabWinAtive"+n; } } } function tabMouseOut(){ window.clearTimeout(waitInterval); } /*过渡效果*/ function TransitionEffect(DivID,Cur,DoType) { var display = (DoType == 1)?"block":"none"; if (($(DivID) != null)){if (Cur != 'x'){$(DivID).filters.revealTrans.Transition = Cur;$(DivID).filters.revealTrans.apply();$(DivID).style.display = display; $(DivID).filters.revealTrans.play();}else{$(DivID).filters.blendTrans.apply();$(DivID).style.display = display; $(DivID).filters.blendTrans.play();};}; } function $(){var elements = new Array();for (var i = 0; i < arguments.length; i++) {var element = arguments[i];if (typeof element == 'string'){if(document.getElementById(element)){element = document.getElementById(element);}else{element = document.getElementsByName(element);}if (arguments.length == 1){return element;}}elements.push(element);}return elements;}; </script> 乐为 电影 电视剧 体育节目 111 222 333 网络游戏 单机游戏 手机游戏 ddesse 555 666 [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行] 加载全部内容