日期:2009-03-26  浏览次数:20851 次

脚本说明:
第一步:把如下代码加入<head>区域中
<script language="JavaScript1.2">
scores = new Array(20);var numTotal=0;NS4 = (document.layers) ? 1 : 0;IE4 = (doc
ument.all) ? 1 : 0;ver4 = (NS4 || IE4) ? 1 : 0;if (ver4) {    with (document) {  
      write("<STYLE TYPE='text/css'>");        if (NS4) {            write(".pare
nt {position:absolute; visibility:visible}");            write(".child {position:
absolute; visibility:visible}");            write(".regular {position:absolute; v
isibility:visible}")        }        else {            write(".child {display:non
e}")        }        write("</STYLE>");    }}function getIndex(el) {    ind = nul
l;    for (i=0; i<document.layers.length; i++) {        whichEl = document.layers
[i];        if (whichEl.id == el) {            ind = i;            break;        
}    }    return ind;}function arrange() {    nextY = document.layers[firstInd].p
ageY +document.layers[firstInd].document.height;    for (i=firstInd+1; i<document
.layers.length; i++) {        whichEl = document.layers[i];        if (whichEl.vi
sibility != "hide") {            whichEl.pageY = nextY;            nextY += which
El.document.height;        }    }}function initIt(){    if (!ver4) return;    if
(NS4) {        for (i=0; i<document.layers.length; i++) {            whichEl = do
cument.layers[i];            if (whichEl.id.indexOf("Child") != -1) whichEl.visib
ility = "hide";       }        arrange();    }    else {        divColl = documen
t.all.tags("DIV");        for (i=0; i<divColl.length; i++) {            whichEl =
divColl(i);            if (whichEl.className == "child") whichEl.style.display =
"none";        }    }}function expandIt(el) {    if (!ver4) return;    if (IE4)
{        whichEl1 = eval(el + "Child");        for(i=1;i<=numTotal;i++){         
   whichEl = eval(scores[i] + "Child&