📄 maxwindow.js
字号:
function bookmarkit(){
window.external.addFavorite('http://www.bluespace.cn','[.::蓝 色 空 间::.]--你的信息宝库!')
}
function mhHover(cls)
{
event.srcElement.className = cls;
}
function mhClick(tbObj, cls)
{
event.srcElement.className = cls;
}
//双击滚屏代码
var currentpos,timer;
function initialize()
{
timer=setInterval("scrollwindow()",25);
}
function sc(){
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos != document.body.scrollTop)
sc();
}
document.onmousedown=sc
document.ondblclick=initialize
//状态栏时钟代码
function kstatus()
{
var strStatus = '欢迎光临 蓝色空间 [Http://www1.BlueSpace.CN:82] 今天是'+new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());
window.status=strStatus;
setTimeout("kstatus()",500);
}
//kstatus();
function doZoom(size)
{
document.getElementById('zoom').style.fontSize=size+'px';
document.getElementById('zoom').style.lineHeight='150%';
}
function doPrint(){
var str="<html>";
var article;
var css;
var strdoPrint="doPrint()";
var strTmp;
var openWindow
css="<style>"
+"body{font-family:宋体;margin:10px;;background:#ffffff}"
+"td{font-size:14px;line-height:150%;border:1 solid #b8b8b8;padding:10px;}"
+"</style>";
str += css;
str += '<meta http-equiv="content-type" content="text/html; charset=gb2312">';
str += '<title>'+document.title+'</title>';
str += "<body>";
str += "<table width='100%' align=center cellpadding=5 cellspacing=2><tr><td><b>"+document.title+"</b><br>原文地址:"+window.location.href+"</td></tr><tr><td>";
article=document.getElementById('zoom').innerHTML;
strTmp=article
str +=strTmp
str += "</td></tr></table>";
str += "</body></html>";
openWindow = window.open('')
openWindow.document.write(str);
openWindow.document.close();
openWindow.document.execCommand("Print")
}
//首页搜索JS跳转代码
function CheckS()
{
eval("self.location='"+document.form1.FileIndex.options[document.form1.FileIndex.selectedIndex].value+""+document.form1.Key.value+"'");
}
//百度搜索代码
function g(formname) {
var url = "BlueSearch.asp";
if (formname.s[1].checked) {
formname.ct.value = "2097152";
}
else {
formname.ct.value = "0";
}
formname.action = url;
return true;
}
// JavaScript Document
function showtable(tableid)
{
whichtable=eval("table"+tableid);
if(whichtable.style.display=="none")
{
eval("table"+tableid+".style.display=\"\";");
}
else
{
eval("table"+tableid+".style.display=\"none\";");
}
}
function bookit(){
window.external.addFavorite(''+document.location.href+'',''+document.title+'')
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -