?? 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
//狀態(tài)欄時鐘代碼
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 + -