?? stop.js
字號(hào):
//改變圖片大小
function resizepic(thispic)
{
if(thispic.width>700) thispic.width=700;
}
//無級(jí)縮放圖片大小
function bbimg(o)
{
//var zoom=parseInt(o.style.zoom, 10)||100;
//zoom+=event.wheelDelta/12;
//if (zoom>0) o.style.zoom=zoom+'%';
//return false;
}
//雙擊鼠標(biāo)滾動(dòng)屏幕的代碼
var currentpos,timer;
function initialize()
{
timer=setInterval ("scrollwindow ()",30);
}
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
//更改字體大小
var status0='';
var curfontsize=10;
var curlineheight=18;
function fontZoomA(){
if(curfontsize>8){
document.getElementById('fontzoom').style.fontSize=(--curfontsize)+'pt';
document.getElementById('fontzoom').style.lineHeight=(--curlineheight)+'pt';
}
}
function fontZoomB(){
if(curfontsize<64){
document.getElementById('fontzoom').style.fontSize=(++curfontsize)+'pt';
document.getElementById('fontzoom').style.lineHeight=(++curlineheight)+'pt';
}
}
window.onbeforeunload = function()
{
var n = window.event.screenX - window.screenLeft;
var b = n > document.documentElement.scrollWidth-20;
if(b && window.event.clientY < 0 || window.event.altKey)
{
//alert("溫馨提示:您正在退出本站系統(tǒng),請(qǐng)點(diǎn)擊確定后,將本站加到您的收藏夾中,以便下次再玩!感謝您的光臨!");
JSAddFavorite()
}
}
/*添加進(jìn)收藏夾*/
function JSAddFavorite()
{
if (document.all)
{
window.external.addFavorite('http://www.xrss.cn/','網(wǎng)絡(luò)大本營(yíng)-中國(guó)最大的編程指導(dǎo)網(wǎng)站');
}
else if (window.sidebar)
{
window.sidebar.addPanel('網(wǎng)絡(luò)大本營(yíng)-中國(guó)最大的編程指導(dǎo)網(wǎng)站', 'http://www.xrss.cn/', "");
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -