common.js
来自「我整理的java面试题,相信对找工作会很有帮助」· JavaScript 代码 · 共 44 行
JS
44 行
function appendFace(face) {
parent.document.post.body.value=parent.document.post.body.value+face;
}
function openFace() {
showModalDialog('/faces.html',parent,'dialogHeight:170px;dialogWidth:200px;status:no');
}
function openJRFace(obj) {
showModalDialog('/jrfaces.jsp',obj,'dialogHeight:670px;dialogWidth:600px;status:no');
}
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit)
field.value = field.value.substring(0, maxlimit);
else
countfield.value = maxlimit - field.value.length;
}
function selectAll(name) {
var obj=document.all[name];
if (obj&&obj.length) {
for (i=0;i<obj.length;i++) {
obj[i].checked=true;
}
return;
}
if (obj) {
obj.checked=true;
}
}
function clearAll(name) {
var obj=document.all[name];
if (obj&&obj.length) {
for (i=0;i<obj.length;i++) {
obj[i].checked=false;
}
return;
}
if (obj) {
obj.checked=false;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?