代码有误,重发
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
<script language=javascript>
function getStyleObject(objectId) {
    // cross-browser function to get an object's style object given its id
    if(document.getElementById && document.getElementById(objectId)) {
// W3C DOM
return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
// MSIE 4 DOM
return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
// NN 4 DOM.. note: this won't find nested layers
return document.layers[objectId];
    } else {
return false;
    }
} // getStyleObjectfunction changeObjectVisibility(objectId, newVisibility) {
    // get a reference to the cross-browser style object and make sure the object exists
    var styleObject = getStyleObject(objectId);
    if(styleObject) {
styleObject.visibility = newVisibility;
return true;
    } else {
// we couldn't find the object, so we can't change its visibility
return false;
    }
} // changeObjectVisibilityfunction  Click_Minus()
{
changeObjectVisibility('minus','hidden');
changeObjectVisibility('plus','visible');
}
function  Click_Plus()
{
changeObjectVisibility('plus','hidden');
changeObjectVisibility('minus','visible');}
</script></head><body>
<div id="minus" style="position:absolute;top:2;left:145;"><a href="#" onclick="Click_Minus();"><img src=treeicons\icons\pisa_minus.gif alt="最小化" border="0"></a></div>
<div id="plus" style="position:absolute;top:2;left:5;display:none;"><img src=treeicons\icons\pisa_plus.gif alt="最大化" border="0" onclick='Click_Plus();'></div></body></html>