box.js
资源名称:JSP-OA.rar [点击查看]
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:2k
源码类别:
Jsp/Servlet
开发平台:
Java
- function loadText()
- {
- var txtLang = document.getElementsByName("txtLang");
- txtLang[0].innerHTML = "Fu00E4rg";
- txtLang[1].innerHTML = "Fyllning";
- txtLang[2].innerHTML = "Margin";
- txtLang[3].innerHTML = "Left";
- txtLang[4].innerHTML = "Right";
- txtLang[5].innerHTML = "Top";
- txtLang[6].innerHTML = "Bottom";
- txtLang[7].innerHTML = "Padding";
- txtLang[8].innerHTML = "Left";
- txtLang[9].innerHTML = "Right";
- txtLang[10].innerHTML = "Top";
- txtLang[11].innerHTML = "Bottom";
- txtLang[12].innerHTML = "Dimension";
- txtLang[13].innerHTML = "Width";
- txtLang[14].innerHTML = "Height";
- var optLang = document.getElementsByName("optLang");
- optLang[0].text = "pixels";
- optLang[1].text = "percent";
- optLang[2].text = "pixels";
- optLang[3].text = "percent";
- document.getElementById("btnCancel").value = "Avbryt";
- document.getElementById("btnApply").value = "Verkstu00E4ll";
- document.getElementById("btnOk").value = " OK ";
- }
- function getText(s)
- {
- switch(s)
- {
- case "No Border": return "Ingen kantlinje";
- case "Outside Border": return "Yttre kantlinje";
- case "Left Border": return "Vu00E4nster kantlinje";
- case "Top Border": return "u00D6vre kantlinje";
- case "Right Border": return "Hu00F6ger kantlinje";
- case "Bottom Border": return "Nedre kantlinje";
- case "Pick": return "Vu00E4lj";
- case "Custom Colors": return "Custom Colors";
- case "More Colors...": return "More Colors...";
- default: return "";
- }
- }
- function writeTitle()
- {
- document.write("<title>Box Formatting</title>")
- }