📄 msgviewer.js
字号:
/*
##############################################
# BigMole Dynamic Discussion Board 2.0 #
# By Emil A Eklund (http://BigMole.5188.org/contact.html#emil) #
# and Erik Arvidson (http://BigMole.5188.org/contact.html#erik) #
# April 24, 1999 #
##############################################
# Feel free to use this script for personal #
# and non-profit organisation's websites, #
# as long as you're giving us credits for it #
# in other words, not removing nur modifying #
# this notice in any of the files it apperes #
##############################################
# For comercial use contact Emil or Erik #
##############################################
*/
fixMessageViewerSize();
window.onload = initMessageViewerPrime;
window.onresize = fixMessageViewerSize;
function initMessageViewerPrime() {
if (parent == null) return;
parent.messageLoaded();
}
function fixMessageViewerSize() {
var f = document.all.tags("IFRAME")[0];
f.style.height = Math.max(document.body.clientHeight - f.offsetTop, 0);
}
function loadMessage(href, subject, from, email, date, groupName, ticksVal) {
var f = document.frames[0];
if (from != "" && email != "")
document.all.email.innerHTML = "<a href=\"mailto:" + replaceSpecial(email) + "\" title=\"" + replaceSpecial(email) + "\">" + replaceSpecial(from) + "</a>";
else if (from != "")
document.all.email.innerText = from;
else
document.all.email.innerHTML = " ";
if (date == "")
document.all.date.innerHTML = " ";
else
document.all.date.innerText = date;
if (href == "")
f.window.location = "about:blank";
else
;//f.window.location = href;
var index = href.indexOf("id=");
if (index != -1)
id.value = href.substring(index+3, href.length)
if (subject == "")
document.all.subject.innerHTML = " ";
else
document.all.subject.innerHTML = '<a href="' + cgiFile + '?action=display&group=' + groupName + '&id=' + id.value +
'" title="' + extLinkTitle + '"' +
" onclick='this.blur();alert(\"" + extLinkAlert + "\"); return false;'>"
+ subject + '</a>';
group.value = groupName;
ticks.value = ticksVal;
parent.messageLoaded(); // Notify the toolbar
doMessageLoaded(href);
}
function doMessageLoaded(href) {
var f = document.frames[0];
if (f.document.readyState == "complete") {//In case the loading hasn't started yet
var as = f.document.all.tags("A");
for (var i=0; i<as.length; i++) {
as[i].target = "_new";
}
parent.treeframe.markAsRead();
}
else {
window.setTimeout("doMessageLoaded(\"" + href + "\")", 100);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -