请详细翻译 这条js 语句的每一句意思

来源:百度知道 编辑:UC知道 时间:2024/05/12 05:34:15
<script type="text/javascript" language="javascript">
function TableBorder() {
if( document.getElementById) {
document.getElementById("TABLE").border = "100";
}else {
if(document.all) {
document.all("TABLE").border = "100";
}
}
}
function Replace() {
if( document.getElementById) {
document.getElementById("TABLE").border = "10";
}else {
if(document.all) {
document.all("TABLE").border = "10";
}
}
}
</script>

<script type="text/javascript" language="javascript">
function TableBorder() {//定义一个函数
if( document.getElementById) {//如果是IE浏览器
document.getElementById("TABLE").border = "100";//设置ID为TABLE的表格的边框为100
}else {
if(document.all) {//如果为FIREFOX浏览器
document.all("TABLE").border = "100";//设置ID为TABLE的表格的边框为100

}
}
}
function Replace() {//定义一个函数
if( document.getElementById) {
document.getElementById("TABLE").border = "10";//设置ID为TABLE的表格的边框为100
}else {
if(document.all) {//如果FIREFOX
document.all("TABLE").border = "10"; //设置ID为TABLE的表格的边框为100
}
}
}
</script>