有没有人能帮我解释这一段JS代码?

来源:百度知道 编辑:UC知道 时间:2024/05/18 06:18:02
function openScript(url, width, height){
var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
}

function bbsgood_img(e, o)
{
var zoom = parseInt(o.style.zoom, 10) || 100;
zoom += event.wheelDelta / 12;
if (zoom > 0) o.style.zoom = zoom + '%';
return false;
}

function checkclick(msg){if(confirm(msg)){event.returnValue=true;}else{event.returnValue=false;}}

function changeto(){
source=event.srcElement
if (source.tagName=="TR"||source.tagName=="TABLE")
return
while(source.tagName!="TD")
source=source.parentElement
if (source.style.backgroundColor!="#f8fafc"&&source.id!="ignore")
source.style.backgroundColor="#f8fafc"
}
function changeback(){
if (event.fromElement.contains(event.toElem

openScript():打开一个窗口名叫做OpenScript的窗口
bbsgood_img():响应鼠标滚轮事件,缩放图片
checkclick():确认是否真的要选择
changeto():将单元格背景着色,表示选中这个单元格
changeback():将单元格背景去色,表示没有选中这个单元格
CheckOthers():选择除自己以外的其他复选框
CheckAll():选择所有复选框