Español
<html> <head> <meta http-equiv="Content-Language" content="zh-cn"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <título >仿Office 2003的工具条</title> <script> var listnum=0; var menú_altura; var menú_ancho; var menú_izquierda; var menú_top; var topMar = 1; var izquierdaMar = -2; espacio var = 1; var es visible; function listbox(nombre de lista, nombre de botón, nombre de valor) { this.listname=nombre de lista this.buttonname=nombre de botón this.valuename=nombre de valor } function listaction(obj,action,showlist,scroll,tw) { num=obj.id.charAt(obj. id.length-1) if (!scroll) {scroll=0} if (!tw) {tw=105} listbox=eval(lb[num].listname) listbutton=eval(lb[num].buttonname) listvalue= eval(lb[num].valuename) switch (acción) { caso 0: listbox.className="getlist";listbutton.className="listover" break; caso 1: if (listbox.gf=="0") {listbox.className="lostlist";listbutton.className="menubar"} descanso; caso 2: for (i=0;i<lb.length;i++) { if (num!=i.toString()){ nlistbox=eval(lb[i].listname) nlistbutton=eval(lb[i]. nombre del botón) nlistvalue=eval(lb[i].valuename) nlistbox.className="lostlist";nlistbutton.className="barra de menú" nlistbox.gf="0" } } ShowMenu(listbox,showlist,tw,scroll);listbox. className="getlist";listbox.gf="1" listnum=num; romper; } } función OcultarMenú() { var mX; var mi; varvDiv; varmDiv; if (isvisible == verdadero) { vDiv = document.all("listDiv"); mX = ventana.event.clientX + document.body.scrollLeft; mY = ventana.event.clientY + document.body.scrollTop; if ((mX < parseInt(vDiv.style.left)) || (mX > parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY < parseInt(vDiv.style.top)-menu_height) || (mY > parseInt(vDiv.style.top)+vDiv.offsetHeight)) { vDiv.style.visibility = "oculto"; isvisible = falso; } } if (isvisible==false) { for (i=0;i<lb.length;i++) { listbox=eval(lb[i].listname) listbutton=eval(lb[i].buttonname) listvalue=eval (lb[i].valuename) listbox.className="lostlist";listbutton.className="menubar" listbox.gf="0" } } } function ShowMenu(obj,vMnuCode,tWidth,scroll) { vMnuCode = "<tabla id='submenu' cellpacing=0 cellpadding=0 bgcolor=#ffffff border=0 style='width:"+tWidth + ";border-colapso: colapsar' class='listDiv'><tr height=23><td nowrap align=left>" + vMnuCode + "</td></tr></table>"; menu_height = obj.offsetHeight; menu_width = obj.offsetWidth; menu_left = obj.offsetLeft + leftMar+2; menu_top = obj.offsetTop + topMar + menu_height + espacio-3; vParent = obj.offsetParent; while (vParent.tagName.toUpperCase() != "CUERPO") { menu_left += vParent.offsetLeft; menu_top += vParent.offsetTop; vParent = vParent.offsetParent; } listDiv.innerHTML = vMnuCode; listDiv.style.top = menu_top; listDiv.style.left = menu_left; if (scroll==0) {listDiv.style.overflow="visible";listDiv.style.width=tWidth} else {listDiv.style.overflow="scroll";listDiv.style.width=tWidth+18} listDiv. estilo.visibilidad = "visible"; var cssopaction=submenu.filters[0].opacity submenu.filters[0].opacity=0; submenú.filtros[1].Aplicar(); submenu.filters[0].opacity=100; submenú.filtros[1].Play(); isvisible = verdadero; } function menuitem(lightcolor,normalcolor,icon,title,url) { this.lightcolor=lightcolor this.normalcolor=normalcolor this.icon=icon this.title=title this.url=url } function bulidmenu(arrayname) { var menuarray= eval(arrayname) menucontent='<table border="0" width="100%">' for (i=0;i<menuarray.length;i++) { if (menuarray[i].title!="_line" ) { if (menuarray[i].url!="_disable"){css="getitem"}else{css="lostitem"} if (menuarray[i].icon.length==0) { content='< table cellpacing="0" cellpadding="0"><tr><td style="text-indent:4px" class="'+css+'">'+menuarray[i].title+'</td></ tr></table>' } else { content='<table cellspaces="0" cellpadding="0"><tr><td width="20" nowrap><img src="'+menuarray[i]. icon+'"></td><td class="'+css+'">'+menuarray[i].title+'</td></tr></table>' } if (menuarray[i].url !="_disable"){ menucontent=menucontent+'<tr><td height=16 style="cursor:default" onmouseover="style.backgroundColor=''+ menuarray[i].lightcolor+''" onmouseout=" style.backgroundColor=''+ menuarray[i].normalcolor+''" onclick="Golist(''+menuarray[i].title+'')">'+content+'</td></tr >' } más { menucontent=menucontent+'<tr><td height=16 style="fitler:gray">'+content+'</td></tr>' } } más { menucontent=menucontent+'<tr>< td height=4><img src="images/dock.gif" width="99%" height=1></td></tr>' } } menucontent=menucontent+"</table>" devolver menucontent } función HL_Menu(obj,state) { switch (estado) { caso 0: obj.className="menuover" break; caso 1: interrupción de obj.className="menuup"; } } var lb=new Array() lb[0]=new listbox('listbox0','listbutton0','listvalue0') lb[1]=new listbox('listbox1','listbutton1','listvalue1') var list1=new Array() list1[0]=nuevo elemento de menú("#B1CBE4","","","ListItem1","") list1[1]=nuevo elemento de menú("#B1CBE4","","" ,"ListItem2","") lista1[2]=nuevo elemento de menú("#B1CBE4","","","ListItem3","") lista1[3]=nuevo elemento de menú("#B1CBE4","", "","ListItem4","") lista1[4]=nuevo elemento de menú("#B1CBE4","","","ListItem5","") lista1[5]=nuevo elemento de menú("#B1CBE4"," ","","ListItem6","") lista1[6]=nuevo elemento de menú("#B1CBE4","","","ListItem7","") lista1[7]=nuevo elemento de menú("#B1CBE4" ,",","","ListItem8","") lista1[8]=nuevo elemento de menú("#B1CBE4","","","ListItem9","") lista1[9]=nuevo elemento de menú("# B1CBE4","","ListItem10","") blist1=bulidmenu("list1") var list2=new Array() list2[0]=new menuitem("#B1CBE4","","", "字体1","") list2[1]=nuevo elemento de menú("#B1CBE4","","","字体2","") list2[2]=nuevo elemento de menú("#B1CBE4","" ,",","字体3","") lista2[3]=nuevo elemento de menú("#B1CBE4","","","字体4","") lista2[4]=nuevo elemento de menú("#B1CBE4 ","","","字体5","") list2[5]=nuevo elemento de menú("#B1CBE4","","字体6","") list2[6]=nuevo elemento de menú ("#B1CBE4","","字体7","") lista2[7]=nuevo elemento de menú("#B1CBE4","","字体8","") lista2[8 ]=nuevo elemento de menú("#B1CBE4","","字体9","") list2[9]=nuevo elemento de menú("#B1CBE4","","字体10","" ) blist2=bulidmenu("lista2") function Golist(texto) { listvalue=eval(lb[listnum].valuename) listvalue.innerText=text vDiv = document.all("listDiv"); vDiv.style.visibility = "oculto"; isvisible = falso; } </script> <estilo> .lostfocus { borde: 1px #ffffff sólido; color de fondo: #ffffff; tamaño de fuente: 12px; familia de fuentes: Arial; } .getfocus { borde: 1px #08246B sólido;color de fondo: #ffffff; familia de fuentes: Arial; tamaño de fuente: 12px; } .menubar {filtro:progid:DXImageTransform.Microsoft.Gradient(gradienttype=0, startcolorstr=#F7F7F7, endcolorstr=#DEDBD6)} .bodybar {filtro:progid:DXImageTransform.Microsoft.Gradient(gradienttype=1, endcolorstr=#F7F7F7 , startcolorstr=#DEDBD6)} .leftitem { font-family: Arial; tamaño de fuente: 12px; color: #000000; cursor: mano } .getitem { familia de fuentes: Arial; tamaño de fuente: 12px; color: #000000; cursor: predeterminado } .lostitem { cursor: predeterminado; color: #808080; tamaño de fuente: 12px; familia de fuentes: Arial; } .menuup { PADDING-IZQUIERDO: 4px; RELLENO-DERECHA: 4px; CURSOR: mano;} .menuover { PADDING-LEFT: 3px; RELLENO-DERECHA: 3px; COLOR DE FONDO: #B5BED6; BORDE: 1px sólido #08246B; CURSOR: mano; } .lostlist { borde: 1px #ffffff sólido; color de fondo: #ffffff; tamaño de fuente: 12px; familia de fuentes: Arial; } .getlist { borde: 1px #08246B sólido;color de fondo: #ffffff; familia de fuentes: Arial; tamaño de fuente: 12px; } .listover {COLOR DE FONDO: #B5BED6; BORDE-izquierdo: 1px sólido #08246B} .listDiv { filtro: alfa(opacidad=90,finishopacity=0,estilo=0) blendtrans(duración=.3); } </style> </head> <body onclick="HideMenu()" style="margin:0px" bgcolor="999999"> <div id=listDiv style='border:1px #636563 solid;VISIBILIDAD: oculto; POSICIÓN: absoluta;desbordamiento:scroll;altura:150'></div> <table border="0" width="100%" id="table27" class="bodybar" cellpacing="0" cellpadding="0" > <tr> <td> <table border="0" cellpacing="0" cellpadding="0" height="30"> <tr> <td><table border="0" cellspace="0" cellpadding= "0" height="22"> <tr> <td width="5"></td> <td nowrap align="center" onmouseover="HL_Menu(this,0)" onmouseout="HL_Menu(this,1) )" class="menuup"> <table border="0" cellpacing="0" cellpadding="0"><tr><td class="leftitem">文件(F)</td></tr>< /table> </td> <td width="5"></td> <td nowrap align="center" onmouseover="HL_Menu(this,0)" onmouseout="HL_Menu(this,1)" class=" menuup"> <table border="0" cellpacing="0" cellpadding="0"><tr><td class="leftitem">编辑(E)</td></tr></table> </ td> </tr> </table></td> </tr> </table> </td> </tr> <tr> <td> <table border="1" ancho="100" id= "table28" cellpacing="0" cellpadding="4" bgcolor="#F7F7F7" style="border-collapse: colapso"> <tr> <td class="barra de menú"> <table border="0" width=" 100%" id="table29" cellpadding="0" cellpadding="0"> <tr> <td width="10" nowrap> <table border="0" width="2" cellpacing="0" cellpadding= "1" id="table30"> <tr> <td><img style="border:1px inset" altura=1 ancho=1></td> </tr> <tr> <td><img style= "borde:1px inserto" altura=1 ancho=1></td> </tr> <tr> <td><img style="borde:1px inserto" alto=1 ancho=1></td> </ tr> <tr> <td><img style="border:1px inset" height=1 width=1></td> </tr> </table></td> <td width="35" nowrap> <font size="2">姓名</font></td> <td width="130" nowrap> <input type="text" name="T5" size="18" class="lostfocus" gf= "0" onmouseover='this.className="getfocus"' onmouseout='if (this.gf=="0") this.className="lostfocus"' onblur='this.className="lostfocus";this.gf ="0"' onfocus='this.className="getfocus";this.gf="1"'></td> <td width="35" nowrap><font size="2">密码</font ></td> <td width="124" nowrap> <input type="contraseña" name="T6" size="18" class="lostfocus" gf="0" onmouseover='this.className="getfocus "' onmouseout='if (this.gf=="0") this.className="lostfocus"' onblur='this.className="lostfocus";this.gf="0"' onfocus='this.className= "getfocus";this.gf="1"'></td> <td width="5" nowrap><img style="border:1px inset" height=14 width=0></td> <td nowrap align="center" onmouseover="HL_Menu(this,0)" onmouseout="HL_Menu(this,1)" class="menuup"> <table cellpacing="0" cellpadding="0" id="table31" width= "25"><tr><td nowrap></td><td class="leftitem"> Tema</td></tr></table> </td> <td width="100%" nowrap> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td> <table border="1" ancho="100" id="table32" cellpacing="0" cellpadding="4" bgcolor="#F7F7F7" style="border-collapse: colapso"> <tr> <td class="menubar"> <table border="0" ancho ="100%" id="table33" cellpacing="0" cellpadding="0"> <tr> <td width="10" nowrap> <table border="0" width="2" cellspace="0" cellpadding="1" id="table34"> <tr> <td><img style="border:1px inset" height=1 width=1></td> </tr> <tr> <td><img style="border:1px inset" altura=1 ancho=1></td> </tr> <tr> <td><img style="border:1px inset" altura=1 ancho=1></td> </tr> <tr> <td><img style="border:1px inset" height=1 width=1></td> </tr> </table></td> <td width="78" nowrap> <div id="listbox0" class="lostfocus" gf="0" onmouseover='listaction(this,0)' onmouseout='listaction(this,1)' onclick='listaction(this,2,blist1, 0)' estilo="cursor:default"> <table border="0" cellpadding="0" cellpacing="0" width="100" height="18" id="table35"> <tr> <td valign =centro estilo="text-indent:4px"><font size="2" face="Verdana"> <span id=listvalue0> </span></font></td> <td width=12 align="center" class="barra de menú" id="listbutton0"> <table border="0" cellpadding="0" style="border-collapse: contraer" id="table36"> <tr altura=1> < td width="1" bgcolor="#000000"></td> <td width="1" bgcolor="#000000"></td> <td width="1" bgcolor="#000000">< /td> <td width="1" bgcolor="#000000"></td> <td width="1" bgcolor="#000000"></td> </tr> <tr altura=1> < td></td> <td bgcolor="#000000"></td> <td bgcolor="#000000"></td> <td bgcolor="#000000"></td> <td></ td> </tr> <tr altura=1> <td></td> <td></td> <td bgcolor="#000000"></td> <td></td> <td>< /td> </tr> </table></td> </tr> </table> </div></td> <td width="78" nowrap> <div id="listbox1" class=" lostfocus" gf="0" onmouseover='listaction(this,0)' onmouseout='listaction(this,1)' onclick='listaction(this,2,blist2,1,100)' style="cursor:default"> < borde de la tabla="0" cellpadding="0" cellpacing="0" width="100" height="18" id="table37"> <tr> <td valign=center style="text-indent:4px"> <font size="2" face="Verdana"><span id=listvalue1> </span></font></td> <td width=12 align="center" class="menubar" id= "listbutton1"> <table border="0" cellpadding="0" style="border-collapse: contraer" id="table38"> <tr height=1> <td width="1" bgcolor="#000000" ></td> <td width="1" bgcolor="#000000"></td> <td width="1" bgcolor="#000000"></td> <td width="1" bgcolor= "#000000"></td> <td ancho="1" bgcolor="#000000"></td> </tr> <tr altura=1> <td></td> <td bgcolor="# 000000"></td> <td bgcolor="#000000"></td> <td bgcolor="#000000"></td> <td></td> </tr> <tr altura=1> <td></td> <td></td> <td bgcolor="#000000"></td> <td></td> <td></td> </tr> </table>< /td> </tr> </table> </div></td> <td width="4" nowrap> </td> <td width="5" nowrap><img style="border:1px inset " altura=14 ancho=0></td> <td nowrap align="center" onmouseover="HL_Menu(this,0)" onmouseout="HL_Menu(this,1)" class="menuup"> <table cellspaceing= "0" cellpadding="0" id="table39" width="16"><tr><td nowrap></td><td class="leftitem" align=center> <b>B</b>< /td></tr></table> </td> <td nowrap align="center" onmouseover="HL_Menu(this,0)" onmouseout="HL_Menu(this,1)" class="menuup"> < table cellpacing="0" cellpadding="0" id="table40" width="16"><tr><td nowrap></td><td class="leftitem" align=center> <i> <b> I</b></i></td></tr></table> </td> <td nowrap align="center" onmouseover="HL_Menu(this,0)" onmouseout="HL_Menu(this, 1)" class="menuup"> <table cellpacing="0" cellpadding="0" id="table41" width="16"><tr><td nowrap></td><td class="leftitem" align=center> <u> <b>U</b></u></td></tr></table> </td> <td width="100%" nowrap> </td> < /tr> </table> </td> </tr> </table> </td> </tr> </table> </body> </html>