藍森林首頁 | 返回主頁 | 本站地圖 | 站內搜索 | 聯繫信箱 |
 您目前的位置:首頁 > 自由軟件 > 技術交流 > 應用編程


    

藍森林 http://www.lslnet.com 2006年8月25日 8:28

網頁中調用code.js,我想不讓複製與選中,誰能把這2個功能給我加上去一下,謝

網頁中調用code.js,我想不讓複製與選中,誰能把這2個功能給我加上去一下,謝謝!

現在裡面只有鎖住鼠標右鍵

想添加的功能,

禁止複製 禁止選中,希望朋友們幫助我搞一下,謝謝!


腳本地址:
http://www.scbz.com/scbz/scripts/code.js

某一頁面
http://www.scbz.com/Article/news/dir1/5224.html

[code]
//鎖住鼠標右鍵
document.oncontextmenu = new Function("event.returnValue = false");
//改變圖片大小
function resizepic(thispic)
{
if(thispic.width>700) thispic.width=700;
}
//無級縮放圖片大小
function bbimg(o)
{
  return false;
}
//雙擊鼠標滾動屏幕的代碼
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';
  }
}
//關閉錯誤腳本提示
<!-- Hide
function killErrors() {
return true;
}
window.onerror = killErrors;
// -->
[/code]




Copyright © 1999-2000 LSLNET.COM. All rights reserved. 藍森林網站 版權所有。 E-mail : webmaster@lslnet.com