showface.js
来自「中国网站网贴吧程序源码(ASP+ACCESS) 实现功能: 多级分类查找,可按多」· JavaScript 代码 · 共 53 行
JS
53 行
function showFace()
{
numButton = 30
document.write ("<table><tr>")
for (i = 0; i < numButton; i++)
{
document.write ("<td><table onmouseover='mouseon(this)' onmouseout='mouseout(this)' onmousedown='mousedown(this)' onmouseup='mouseup(this, " + i + ")' border='0' cellpadding='0' cellspacing='0' width='26' height='26' class='normal'>" +
"<tr><td align='center'><img border='0' src='Face/FACE" + i + ".gif'></td></tr></table></td>")
if ((i + 1) % 6 == 0) document.write ("</tr><tr>")
}
document.write ("</tr></table>")
}
function mouseon(button)
{
button.className = "mouseon"
button.all[0].all[0].all[0].className = "tdmouseon"
}
function mouseout(button)
{
button.className = "normal"
button.all[0].all[0].all[0].className = ""
}
function mousedown(button)
{
button.className = "mousedown"
button.all[0].all[0].all[0].className = ""
}
function mouseup(button, i)
{
button.className = "mouseon"
button.all[0].all[0].all[0].className = "tdmouseon"
myForm.Content.value += "[FACE" + i + "]"
}
function checkWords()
{
if (wordsInfo.innerText != myForm.Content.value.length) wordsInfo.innerText = myForm.Content.value.length
}
function ctlkey()
{
if(event.ctrlKey && window.event.keyCode==13){document.myForm.SUBMIT.click();}
}
var ie = (document.all)? true:false
if (ie)
{
window.document.onkeydown=ctlkey;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?