📄 board.js
字号:
function adminOperate(obj)
{
var action = obj.options[obj.selectedIndex].value;
if (action == '')
{
obj.options[0].selected = true;
return;
}
var f = document.forms['admin'];
var idList = '';
for (i=f.elements.length; i>0; i--)
{
if (f.elements[i-1].type.toLowerCase() == "checkbox")
{
if (f.elements[i-1].checked)
{
idList += f.elements[i-1].value.toString() + ",";
}
}
}
if (action == 'check')
{
location.href = 'accesstopic.aspx';
return ;
}
if (idList == '')
{
alert('没有选择任何记录行');
obj.options[0].selected = true;
return;
}
idList = idList.substring(0, idList.length - 1);
if (action == 'signed')
{
location.href = 'topic_signed.aspx?topicid=' + idList;
}else if (action == 'move')
{
location.href = 'topic_move.aspx?topicid=' + idList;
}
else if (action == 'delete')
{
location.href = 'topic_delete.aspx?topicid=' + idList;
}
else if (action == 'top')
{
location.href = 'topic_SetTopTime.aspx?action=top&topicid=' + idList;
}
else if (action =='topall')
{
location.href = 'topic_SetTopTime.aspx?action=topall&topicid=' + idList;
}
else
{
f.event.value = action;
f.action = location.href;
f.submit();
}
}
function switchTopicOpenMode(box)
{
var isPopNew = box.checked;
var anchorTags = document.getElementsByTagName('a');
for (var i=0; i<anchorTags.length; i++)
{
if (anchorTags[i].getAttribute('name') != 'topiclink') continue;
anchorTags[i].target = isPopNew ? '_blank' : '_self';
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -