menu.jsp
来自「一个jsp的课程设计:电子商务网站」· JSP 代码 · 共 413 行 · 第 1/2 页
JSP
413 行
<%@page contentType="text/html"%><%@page pageEncoding="UTF-8"%><%--The taglib directive below imports the JSTL library. If you uncomment it,you must also add the JSTL library to the project. The Add Library... actionon Libraries node in Projects view can be used to add the JSTL 1.1 library.--%><%--<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> --%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <style type="text/css"><!--body { font-size: 12px; color: #000000; text-decoration: none; height: auto; width: auto; margin: 0px; padding: 0px; line-height: 18px; margin-left: 2px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px;}A:link { COLOR: #326292; TEXT-DECORATION: none}A:visited { COLOR: #326292; TEXT-DECORATION: none}A:hover { COLOR: #1E8EFF; TEXT-DECORATION: underline}A:active { COLOR: #326292; TEXT-DECORATION: none}.cB8CDFF { FONT-SIZE: 13px; COLOR: #b8cdff}.c215DC6 { FONT-SIZE: 13px; COLOR: #009999}.a:link { color: #4374B6; font-family: "宋体"; font-size: 13px; text-decoration: none;}--></style><script language="javaScript"> <!-- function MFXinitMenu(){ IE = document.all ? 1:0; NN = document.layers ? 1:0; HIDDEN = (NN) ? 'hide' : 'hidden'; VISIBLE = (NN) ? 'show' : 'visible'; myLayer=new Array(); mySpeed=5; subLeft=0; closes=true; myLayer[0]=(NN) ? document.MFX0 : document.all.MFX0.style; myLayer[1]=(NN) ? document.MFX1 : document.all.MFX1.style; myLayer[2]=(NN) ? document.MFX2 : document.all.MFX2.style; myLayer[3]=(NN) ? document.MFX3 : document.all.MFX3.style; myLayer[4]=(NN) ? document.MFX4 : document.all.MFX4.style; myLayer[5]=(NN) ? document.MFX5 : document.all.MFX5.style; running=false; whichOpen=-1; lastMain=myLayer.length-2; MFXmain=new Array(); for(i=0; i<myLayer.length; i++){ mainORsub= i % 2; MFXmain[i] = mainORsub ? 0:1; } myTop=new Array(); myLeft=new Array(); myHeight=new Array(); myWidth=new Array(); mySlide=new Array(); for(i=0; i<myLayer.length; i++){ if(NN&&MFXmain[i]){ if(i==0){ myTop[i]=myLayer[i].top; myLeft[i]=myLayer[i].left;} else{ myLeft[i]=myLeft[i-2]; myTop[i]=myTop[i-2]+myHeight[i-2];} 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-1]+myHeight[i-1]; myLeft[i]=myLeft[i-1]; 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==0){ myLeft[i]=myLayer[i].pixelLeft; myTop[i]=myLayer[i].pixelTop;} else{ myLeft[i]=myLeft[i-2]; myTop[i]=myTop[i-2]+myHeight[i-2];} 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-1]+myHeight[i-1]; myLeft[i]=myLeft[i-1]; 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=0; thereS=false; thereC=false; if(newspeed>0){mySpeed=newspeed;} first=myName; if(whichOpen==-1&&!running&&MFXmain[myName]&&!(whichOpen==myName)){ running=true; if(NN){ myLayer[myName+1].clip.height=0; myLayer[myName+1].visibility=VISIBLE; } if(IE){ myLayer[myName+1].clip= "rect(" + ("auto") +" "+ ("auto") +" "+ (0) +" "+ ("auto") +")"; myLayer[myName+1].visibility=VISIBLE; } MFXopenMenuS(myName); MFXopenMenuC(myName); } if(whichOpen>=0&&!running&&!(whichOpen==myName)){ running=true; second=whichOpen; ieStep1=myHeight[second+1]; thereCS=false; thereCC=false; MFXcloseMenuS(second); MFXcloseMenuC(second); } if(whichOpen>=0&&!running&&whichOpen==myName&&closes){ running=true; second=whichOpen; ieStep1=myHeight[second+1]; thereCS=false; thereCC=false; MFXcloseMenuS(second); MFXcloseMenuC(second); } } function MFXstopCloseS(myName){ running=false; thereCS=true; if(closes&&first==whichOpen){whichOpen=-1;} else{whichOpen=-1; MFXrunMenu(first); } } function MFXstopOpenS(myName){ running=false; thereS=true; if(IE){myLayer[myName+1].clip= "rect(" + ("auto") +" "+ ("auto") +" "+ ("auto") +" "+ ("auto") +")";} whichOpen=myName; } function MFXopenMenuS(myName){ myStep=mySpeed; if(NN&&!thereS&&!(first==lastMain)){ if(myLayer[first+2].top+myStep>mySlide[first+1]){ myStep=mySlide[first+1]-myLayer[first+2].top; } for(i=first+2; i<myLayer.length; i+=2){ myLayer[i].top+=myStep; } if(myLayer[first+2].top==mySlide[first+1]){ MFXstopOpenS(first) } if(running)setTimeout('MFXopenMenuS(first)',10); } if(IE&&!thereS&&!(first==lastMain)){ if(myLayer[first+2].pixelTop+myStep>mySlide[first+1]){ myStep=mySlide[first+1]-myLayer[first+2].pixelTop; } for(i=first+2; i<myLayer.length; i+=2){ myLayer[i].pixelTop+=myStep; } if(myLayer[first+2].pixelTop==mySlide[first+1]){ MFXstopOpenS(first) } if(running)setTimeout('MFXopenMenuS(first)',10); } } function MFXopenMenuC(myName){ myStep=mySpeed; if(NN&&!thereC){ if ((myLayer[first+1].clip.height+myStep)>myHeight[first+1]){ myLayer[first+1].clip.height=myHeight[first+1]
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?