知识大全 JS特效代码--仿windows xp左侧菜单效果

Posted 菜单

篇首语:日日行,不怕千万里;时时学,不怕千万卷。本文由小常识网(cha138.com)小编为大家整理,主要介绍了知识大全 JS特效代码--仿windows xp左侧菜单效果相关的知识,希望对你有一定的参考价值。

JS特效代码--仿windows xp左侧菜单效果  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!

  <>

  <head> <style type=text/css> <! UNKNOWN COLOR: # dc ; TEXT DECORATION: none A:visited COLOR: # dc ; TEXT DECORATION: none A:hover COLOR: # cc; TEXT DECORATION: none A:active COLOR: #ff ; TEXT DECORATION: none

   cB CDFF FONT SIZE: px; COLOR: #b cdff c DC FONT SIZE: px; COLOR: # dc

   > </style> <script language="JavaScript"> <!

  function MFXinitMenu() IE = document all ? : ; NN = document layers ? : ; HIDDEN = (NN) ? hide : hidden ; VISIBLE = (NN) ? show : visible ; myLayer=new Array(); mySpeed= ; subLeft= ; closes=true; myLayer[ ]=(NN) ? document MFX : document all MFX style; myLayer[ ]=(NN) ? document MFX : document all MFX style; myLayer[ ]=(NN) ? document MFX : document all MFX style; myLayer[ ]=(NN) ? document MFX : document all MFX style; myLayer[ ]=(NN) ? document MFX : document all MFX style; myLayer[ ]=(NN) ? document MFX : document all MFX style; myLayer[ ]=(NN) ? document MFX : document all MFX style; myLayer[ ]=(NN) ? document MFX : document all MFX style; running=false; whichOpen= ; lastMain=myLayer length ; MFXmain=new Array(); for(i= ; i<myLayer length; i++) mainORsub= i % ; MFXmain[i] = mainORsub ? : ; myTop=new Array(); myLeft=new Array(); myHeight=new Array(); myWidth=new Array(); mySlide=new Array(); for(i= ; i<myLayer length; i++) if(NN&&MFXmain[i]) if(i== ) myTop[i]=myLayer[i] top; myLeft[i]=myLayer[i] left; else myLeft[i]=myLeft[i ]; myTop[i]=myTop[i ]+myHeight[i ]; myHeight[i]=myLayer[i] clip height; myWidth[i]=myLayer[i] clip width; myLayer[i] left=myLeft[i]; myLayer[i] top=myTop[i]; myLayer[i] visibility=VISIBLE; if(NN&&!MFXmain[i]) myTop[i]=myTop[i ]+myHeight[i ]; myLeft[i]=myLeft[i ]; myHeight[i]=myLayer[i] clip height; myWidth[i]=myLayer[i] clip width; mySlide[i]=myTop[i]+myHeight[i]; myLayer[i] left=myLeft[i]+subLeft; myLayer[i] top=myTop[i]; if(IE&&MFXmain[i]) if(i== ) myLeft[i]=myLayer[i] pixelLeft; myTop[i]=myLayer[i] pixelTop; else myLeft[i]=myLeft[i ]; myTop[i]=myTop[i ]+myHeight[i ]; myHeight[i]=myLayer[i] pixelHeight; myWidth[i]=myLayer[i] pixelWidth; myLayer[i] left=myLeft[i]; myLayer[i] top=myTop[i]; myLayer[i] visibility=VISIBLE; if(IE&&!MFXmain[i]) myTop[i]=myTop[i ]+myHeight[i ]; myLeft[i]=myLeft[i ]; myHeight[i]=myLayer[i] pixelHeight; myWidth[i]=myLayer[i] pixelWidth; myLayer[i] pixelLeft=myLeft[i]+subLeft; myLayer[i] pixelTop=myTop[i]; mySlide[i]=myTop[i]+myHeight[i]; function MFXrunMenu(myName newspeed) ieStep= ; thereS=false; thereC=false; if(newspeed> )mySpeed=newspeed; first=myName; if(whichOpen== &&!running&&MFXmain[myName]&&!(whichOpen==myName)) running=true; if(NN) myLayer[myName+ ] clip height= ; myLayer[myName+ ] visibility=VISIBLE; if(IE) myLayer[myName+ ] clip= "rect(" + ("auto") +" "+ ("auto") +" "+ ( ) +" "+ ("auto") +")"; myLayer[myName+ ] visibility=VISIBLE; MFXopenMenuS(myName); MFXopenMenuC(myName); if(whichOpen>= &&!running&&!(whichOpen==myName)) running=true; second=whichOpen; ieStep =myHeight[second+ ]; thereCS=false; thereCC=false; MFXcloseMenuS(second); MFXcloseMenuC(second); if(whichOpen>= &&!running&&whichOpen==myName&&closes) running=true; second=whichOpen; ieStep =myHeight[second+ ]; thereCS=false; thereCC=false; MFXcloseMenuS(second); MFXcloseMenuC(second);   function MFXstopCloseS(myName) running=false; thereCS=true; if(closes&&first==whichOpen)whichOpen= ; elsewhichOpen= ; MFXrunMenu(first); function MFXstopOpenS(myName) running=false; thereS=true; if(IE)myLayer[myName+ ] clip= "rect(" + ("auto") +" "+ ("auto") +" "+ ("auto") +" "+ ("auto") +")"; whichOpen=myName; function MFXopenMenuS(myName) myStep=mySpeed; if(NN&&!thereS&&!(first==lastMain)) if(myLayer[first+ ] top+myStep>mySlide[first+ ]) myStep=mySlide[first+ ] myLayer[first+ ] top; for(i=first+ ; i<myLayer length; i+= ) myLayer[i] top+=myStep; if(myLayer[first+ ] top==mySlide[first+ ]) MFXstopOpenS(first) if(running)setTimeout( MFXopenMenuS(first) ); if(IE&&!thereS&&!(first==lastMain)) if(myLayer[first+ ] pixelTop+myStep>mySlide[first+ ]) myStep=mySlide[first+ ] myLayer[first+ ] pixelTop; for(i=first+ ; i<myLayer length; i+= ) myLayer[i] pixelTop+=myStep; if(myLayer[first+ ] pixelTop==mySlide[first+ ]) MFXstopOpenS(first) if(running)setTimeout( MFXopenMenuS(first) ); function MFXopenMenuC(myName) myStep=mySpeed; if(NN&&!thereC) if ((myLayer[first+ ] clip height+myStep)>myHeight[first+ ]) myLayer[first+ ] clip height=myHeight[first+ ] if(myLayer[first+ ] clip height==myHeight[first+ ]) thereC=true; whichOpen=first; MFXstopOpenS(first)

  else myLayer[first+ ] clip height+=myStep;

   if(running)setTimeout( MFXopenMenuC(first) ); if(IE&&!thereC) ieStep+=myStep; myLayer[myName+ ] clip= "rect(" + ("auto") +" "+ ("auto") +" "+ (ieStep) +" "+ ("auto") +")";

  if(ieStep>=myHeight[first+ ]) thereC=true; whichOpen=first; MFXstopOpenS(first) if(running)setTimeout( MFXopenMenuC(first) ); function MFXcloseMenuS(myName) myStep=mySpeed; if(NN&&!thereCS&&!(second==lastMain)) if(myLayer[second+ ] top myStep<myTop[second+ ]) myStep=myLayer[second+ ] top myTop[second+ ]; for(i=second+ ; i<myLayer length; i+= ) myLayer[i] top =myStep;

   if(myLayer[second+ ] top==myTop[second+ ]) MFXstopCloseS(second); if(running)setTimeout( MFXcloseMenuS(second) ); if(IE&&!thereCS&&!(second==lastMain)) if(myLayer[second+ ] pixelTop myStep<myTop[second+ ]) myStep=myLayer[second+ ] pixelTop myTop[second+ ]; for(i=second+ ; i<myLayer length; i+= ) myLayer[i] pixelTop =myStep;

   if(myLayer[second+ ] pixelTop==myTop[second+ ]) MFXstopCloseS(second); if(running)setTimeout( MFXcloseMenuS(second) ); function MFXcloseMenuC(myName) myStep= mySpeed; ieStep =mySpeed; if(NN&&!thereCC) if ((myLayer[second+ ] clip bottom+myStep)< ) myLayer[second+ ] clip bottom= ; if(myLayer[second+ ] clip bottom== ) thereCC=true;

  if(second==lastMain)MFXstopCloseS(second); else myLayer[second+ ] clip bottom+=myStep;

   if(running)setTimeout( MFXcloseMenuC(second) ); if(IE&&!thereCC) if(ieStep <= ) myLayer[myName+ ] clip= "rect(" + ("auto") +" "+ ("auto") +" "+ ( ) +" "+ ("auto") +")"; thereCC=true; if(second==lastMain)MFXstopCloseS(second); else myLayer[myName+ ] clip= "rect(" + ("auto") +" "+ ("auto") +" "+ (ieStep ) +" "+ ("auto") +")";

   if(running)setTimeout( MFXcloseMenuC(second) );

  function MM_findObj(n d) //v  var p i x; if(!d) d=document; if((p=n indexOf("?"))> &&parent frames length)  d=parent frames[n substring(p+ )] document; n=n substring( p);  if(!(x=d[n])&&d all) x=d all[n]; for (i= ;!x&&i<d forms length;i++) x=d forms[i][n];  for(i= ;!x&&d layers&&i<d layers length;i++) x=MM_findObj(n d layers[i] document);  if(!x && document getElementById) x=document getElementById(n); return x; // > </script> </head>

  <body onload="MFXinitMenu()" bgcolor="# B ">

cha138/Article/program/Java/JSP/201311/20192

相关参考

知识大全 windows XP 系统中通过开始菜单中的“运行”命令一定要输入程序的详细路径么

windowsXP系统中通过开始菜单中的“运行”命令一定要输入程序的详细路径么?还是也可以只输入程序名?  以下文字资料是由(本站网www.cha138.com)小编为大

知识大全 JS特效代码--一个很Cool的JS菜单效果

JS特效代码--一个很Cool的JS菜单效果  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  &l

知识大全 JS特效代码--下拉透明菜单

JS特效代码--下拉透明菜单  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  <script

知识大全 JS特效代码--省市联动下拉菜单

JS特效代码--省市联动下拉菜单  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  <scri

知识大全 仿新浪微博登陆邮箱提示效果的js代码

本文为大家介绍下使用js仿新浪微博登陆邮箱提示效果具体实现代码如下感兴趣的朋友可以参考下希望对大家有所帮组 复制代码代码如下:cha138/Article/program/Java

知识大全 C#代码关闭Windows XP

C#代码关闭WindowsXP  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  

知识大全 21在windows xp系统中菜单命令后带有省略号,表示执行该命令后会出现( )A程序窗口B菜单栏C对话框D文档窗

21在windowsxp系统中菜单命令后带有省略号,表示执行该命令后会出现()A程序窗口B菜单栏C对话框D文档窗  以下文字资料是由(本站网www.cha138.com)

知识大全 JS仿QQ商城点击左右滚动jquery焦点图特效

JS仿QQ商城点击左右滚动jquery焦点图特效  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  

知识大全 JS特效代码--实现cool的点击式弹出菜单

JS特效代码--实现cool的点击式弹出菜单  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!<

知识大全 js下拉框二级关联菜单效果代码具体实现

这篇文章介绍了js下拉框二级关联菜单效果代码具体实现有需要的朋友可以参考一下 复制代码代码如下: <!DOCTYPEPUBLIC"//WC//DTDXHTMLTransiti