ภาษาไทย
<html> <head> <meta http-equiv="Content-Language" content="zh-cn"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title >สร้าง Office 2003 สำเร็จแล้ว</title> <script> var listnum=0; var menu_height; var menu_width; var menu_left; var menu_top; var topMar = 1; var leftMar = -2; พื้นที่ว่าง = 1; var มองเห็นได้; กล่องรายการฟังก์ชัน (listname,buttonname,valuename) { this.listname=listname this.buttonname=buttonname this.valuename=valuename } 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) (การกระทำ) { กรณีที่ 0: listbox.className = "getlist"; listbutton.className = "listover" แบ่ง; กรณีที่ 1: if (listbox.gf=="0") {listbox.className="lostlist";listbutton.className="menubar"} พัง; กรณีที่ 2: for (i=0;i<lb.length;i++) { if (num!=i.toString()){ nlistbox=eval(lb[i].listname) nlistbutton=eval(lb[i]. ชื่อปุ่ม) nlistvalue=eval(lb[i].valuename) nlistbox.className="lostlist";nlistbutton.className="menubar" nlistbox.gf="0" } } ShowMenu(listbox,showlist,tw,scroll);listbox. className="getlist";listbox.gf="1" listnum=num; หยุดพัก; } } ฟังก์ชั่น HideMenu() { var mX; var ของฉัน; var vDiv; var mDiv; ถ้า (มองเห็นได้ == จริง) { vDiv = document.all("listDiv"); mX = window.event.clientX + document.body.scrollLeft; mY = window.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 = "ซ่อน"; มองเห็นได้ = เท็จ; } } if (isvisible==false) { สำหรับ (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" } } } ฟังก์ชัน ShowMenu(obj,vMnuCode,tWidth,scroll) { vMnuCode = "<table id='เมนูย่อย' cellspacing=0 cellpadding=0 bgcolor=#ffffff border=0 style='width:"+tWidth + ";border-collapse: allowance' 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 + space-3; vParent = obj.offsetParent; ในขณะที่ (vParent.tagName.toUpperCase() != "BODY") { menu_left += vParent.offsetLeft; menu_top += vParent.offsetTop; vParent = vParent.offsetParent; } listDiv.innerHTML = vMnuCode; listDiv.style.top = เมนู_ท็อป; listDiv.style.left = เมนู_ซ้าย; if (scroll==0) {listDiv.style.overflow="visible";listDiv.style.width=tWidth} else {listDiv.style.overflow="scroll";listDiv.style.width=tWidth+18} listDiv. style.visibility = "มองเห็นได้"; var cssopaction=submenu.filters[0].opacity submenu.filters[0].opacity=0; submenu.filters[1].สมัคร(); เมนูย่อย.ตัวกรอง[0].ความทึบ=100; submenu.filters[1].เล่น(); มองไม่เห็น = จริง; } ฟังก์ชั่นเมนูรายการ (สีอ่อน, สีปกติ, ไอคอน, ชื่อ, url) { this.lightcolor=lightcolor this.normalcolor=normalcolor this.icon=icon this.title=title this.url=url } ฟังก์ชั่น bulidmenu(arrayname) { var menuarray= eval(arrayname) menucontent='<table border="0" width="100%">' สำหรับ (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='< ตาราง cellspacing="0" cellpadding="0"><tr><td style="text-indent:4px" class="'+css+'">'+menuarray[i].title+'</td></ tr></table>' } else { content='<table cellspacing="0" cellpadding="0"><tr><td width="20" nowrap><img src="'+menuarray[i]. icon+'"></td><td class="'+css+'">'+menuarray[i].title+'</td></tr></table>' } ถ้า (เมนู [i].url !="_disable"){ menucontent=menucontent+'<tr><td height=16 style="cursor:default" onmouseover="style.พื้นหลังสี=''+ menuarray[i].lightcolor+''" onmouseout=" style.พื้นหลังสี=''+ menuarray[i].normalcolor+''" onclick="Golist(''+menuarray[i].title+'')">'+content+'</td></tr >' } else { menucontent=menucontent+'<tr><td height=16 style="fitler:gray">'+content+'</td></tr>' } } else { menucontent=menucontent+'<tr>< td height=4><img src="images/dock.gif" width="99%" height=1></td></tr>' } } menucontent=menucontent+"</table>" return menucontent } ฟังก์ชัน HL_Menu (obj, state) { สวิตช์ (สถานะ) { กรณีที่ 0: obj.className = "menuover" พัง; กรณีที่ 1: obj.className="menuup" พัง; } } var lb=new Array() lb[0]=new listbox('listbox0','listbutton0','listvalue0') lb[1]=new listbox('listbox1','listbutton1','listvalue1') var list1=อาร์เรย์ใหม่() list1[0]=รายการเมนูใหม่("#B1CBE4", "", "ListItem1", "") list1[1]=รายการเมนูใหม่("#B1CBE4", "" ,"ListItem2", "") list1[2]=รายการเมนูใหม่("#B1CBE4", "", "ListItem3", "") list1[3]=รายการเมนูใหม่("#B1CBE4","", "", "ListItem4", "") list1[4]=รายการเมนูใหม่("#B1CBE4", "", "ListItem5", "") list1[5]=รายการเมนูใหม่("#B1CBE4" "", "ListItem6", "") list1[6]=รายการเมนูใหม่("#B1CBE4", "","ListItem7", "") list1[7]=รายการเมนูใหม่("#B1CBE4" ,"", "ListItem8", "") list1[8]=รายการเมนูใหม่("#B1CBE4",""ListItem9", "") list1[9]=รายการเมนูใหม่("# B1CBE4","", "ListItem10", "") blist1=bulidmenu("list1") var list2=อาร์เรย์ใหม่() list2[0]=รายการเมนูใหม่("#B1CBE4", "", "字体1", "") list2[1]=รายการเมนูใหม่("#B1CBE4", "", "字体2", "") list2[2]=รายการเมนูใหม่("#B1CBE4","" ,"", "字体3", "") list2[3]=รายการเมนูใหม่("#B1CBE4", "", "字体4", "") list2[4]=รายการเมนูใหม่("#B1CBE4 "", "" 字体5 "") list2[5]=รายการเมนูใหม่("#B1CBE4", "", "字体6" "") list2[6]=รายการเมนูใหม่ ("#B1CBE4", "", "字体7", "") list2[7]=รายการเมนูใหม่("#B1CBE4", "", "字体8", "") รายการ2[8 ]=รายการเมนูใหม่("#B1CBE4", "", "字体9", "") list2[9]=รายการเมนูใหม่("#B1CBE4"",""字体10"" ) blist2=bulidmenu("list2") ฟังก์ชั่น Golist(text) { listvalue=eval(lb[listnum].valuename) listvalue.innerText=text vDiv = document.all("listDiv"); vDiv.style.visibility = "ซ่อน"; มองเห็นได้ = เท็จ; } </script> <style> .lostfocus { เส้นขอบ: 1px #ffffff ทึบ; สีพื้นหลัง: #ffffff; ขนาดตัวอักษร: 12px; ตระกูลฟอนต์: Arial; } .getfocus { เส้นขอบ: 1px #08246B ทึบ; สีพื้นหลัง: #ffffff; ตระกูลฟอนต์: Arial; ขนาดตัวอักษร: 12px; } .menubar {ตัวกรอง:progid:DXImageTransform.Microsoft.Gradient(gradienttype=0, startcolorstr=#F7F7F7, endcolorstr=#DEDBD6)} .bodybar {ตัวกรอง:progid:DXImageTransform.Microsoft.Gradient(gradienttype=1, endcolorstr=#F7F7F7 , startcolorstr=#DEDBD6)} .leftitem { ตระกูลแบบอักษร: Arial; ขนาดตัวอักษร: 12px; สี: #000000; เคอร์เซอร์: มือ } .getitem { ตระกูลแบบอักษร: Arial; ขนาดตัวอักษร: 12px; สี: #000000; เคอร์เซอร์: ค่าเริ่มต้น } .lositem { เคอร์เซอร์: ค่าเริ่มต้น; สี: #808080; ขนาดตัวอักษร: 12px; ตระกูลฟอนต์: Arial; } .menuup { ช่องว่างด้านซ้าย: 4px; PADDING-ขวา: 4px; เคอร์เซอร์: มือ;} .menuover { PADDING-LEFT: 3px; PADDING-ขวา: 3px; สีพื้นหลัง: #B5BED6; เส้นขอบ: 1px ทึบ #08246B; เคอร์เซอร์: มือ; } .lostlist { เส้นขอบ: 1px #ffffff ทึบ; สีพื้นหลัง: #ffffff; ขนาดตัวอักษร: 12px; ตระกูลฟอนต์: Arial; } .getlist { เส้นขอบ: 1px #08246B ทึบ; สีพื้นหลัง: #ffffff; ตระกูลฟอนต์: Arial; ขนาดตัวอักษร: 12px; } .listover {สีพื้นหลัง: #B5BED6; BORDER-left:1px solid #08246B} .listDiv { ตัวกรอง: alpha(opacity=90,finishopacity=0,style=0) blendtrans(duration=.3); } </style> </head> <body onclick="HideMenu()" style="margin:0px" bgcolor="999999"> <div id=listDiv style='border:1px #636563 ทึบ;การมองเห็น: ซ่อนเร้น; ตำแหน่ง: แน่นอน;โอเวอร์โฟลว์:เลื่อน;ความสูง:150'></div> <table border="0" width="100%" id="table27" class="bodybar" cellspacing="0" cellpadding="0" > <tr> <td> <table border="0" cellspacing="0" cellpadding="0" height="30"> <tr> <td><table border="0" cellspacing="0" เซลล์แพดดิ้ง= "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" cellspacing="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=" เมนูอัพ"> <table border="0" cellspacing="0" cellpadding="0"><tr><td class="leftitem">编辑(E)</td></tr></table> </td></tr></table> </table td> </tr> </table></td> </tr> </table> </td> </tr> <tr> <td> <table border="1" width="100" id= "table28" cellspacing="0" cellpadding="4" bgcolor="#F7F7F7" style="border-collapse: allowance"> <tr> <td class="menubar"> <table border="0" width=" 100%" id="table29" cellspacing="0" cellpadding="0"> <tr> <td width="10" nowrap> <table border="0" width="2" cellspacing="0" เซลล์แพดดิ้ง= "1" id="table30"> <tr> <td><img style="border:1px สิ่งที่ใส่เข้าไป" height=1 width=1></td> </tr> <tr> <td><img style= "เส้นขอบ: สิ่งที่ใส่เข้าไป 1px" ความสูง=1 ความกว้าง=1></td> </tr> <tr> <td><img style="border:1px สิ่งที่ใส่เข้าไป" ความสูง=1 ความกว้าง=1></td> </ tr> <tr> <td><img style="border:1px สิ่งที่ใส่เข้าไป" height=1 width=1></td> </tr> </table></td> <td width="35" ตอนนี้ห่อ> <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="รหัสผ่าน" 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 cellspacing="0" cellpadding="0" id="table31" width= "25"><tr><td nowrap></td><td class="leftitem"> 登陆</td></tr></table> </td> <td width="100%" nowrap> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td> <เส้นขอบตาราง="1" width="100" id="table32" cellspacing="0" cellpadding="4" bgcolor="#F7F7F7" style="border-collapse: allowance"> <tr> <td class="menubar"> <table border="0" ความกว้าง ="100%" id="table33" cellspacing="0" cellpadding="0"> <tr> <td width="10" nowrap> <table border="0" width="2" cellspacing="0" เซลล์แพดดิ้ง="1" id="table34"> <tr> <td><img style="border:1px inset" height=1 width=1></td> </tr> <tr> <td><img style="border:1px สิ่งที่ใส่เข้าไป" height=1 width=1></td> </tr> <tr> <td><img style="border:1px สิ่งที่ใส่เข้าไป" height=1 width=1></td> </tr> <tr> <td><img style="border:1px สิ่งที่ใส่เข้าไป" height=1 width=1></td> </tr> </table></td> <td width="78" nowrap> <div id = "listbox0" class = "lostfocus" gf = "0" onmouseover = 'listaction (นี้, 0)' onmouseout = 'listaction (นี้, 1)' onclick = 'listaction (นี้, 2, blist1, 0)' style="cursor:default"> <table border="0" cellpadding="0" cellspacing="0" width="100" height="18" id="table35"> <tr> <td valign =center style="text-indent:4px"><font size="2" face="Verdana"> <span id=listvalue0> </span></font></td> <td width=12 align="center" class="menubar" id="listbutton0"> <table border="0" cellpadding="0" style="border-collapse: allowance" id="table36"> <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 width="1" bgcolor="#000000"></td> </tr> <tr ความสูง=1> < td></td> <td bgcolor="#000000"></td> <td bgcolor="#000000"></td> <td bgcolor="#000000"></td> <td></ td> </tr> <tr ความสูง=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"> < เส้นขอบของตาราง = "0" cellpadding = "0" cellspacing = "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="เมนูบาร์" id= "listbutton1"> <table border="0" cellpadding="0" style="border-collapse:ยุบ" 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 width="1" bgcolor="#000000"></td> </tr> <tr height=1> <td></td> <td bgcolor="# 000000"></td> <td bgcolor="#000000"></td> <td bgcolor="#000000"></td> <td></td> </tr> <tr ความสูง=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 สิ่งที่ใส่เข้าไป " height=14 width=0></td> <td nowrap align="center" onmouseover="HL_Menu(this,0)" onmouseout="HL_Menu(this,1)" class="menuup"> <table cellspacing= "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"> < ตาราง cellspacing="0" cellpadding="0" id="table40" width="16"><tr><td nowrap></td><td class="leftitem" align=center> <i> <b> ฉัน</b></i></td></tr></table> </td> <td nowrap align="center" onmouseover="HL_Menu(this,0)" onmouseout="HL_Menu(this, 1)" class="menuup"> <table cellspacing="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%" ตอนนี้แร็ป> </td> < /tr> </table> </td> </tr> </table> </td> </tr> </table> </body> </html>