[url]http://causlayer.51.net/other/index.htm[/url]
[url]http://causlayer.51.net/other/plus.gif[/url]
[url]http://causlayer.51.net/other/blank.gif[/url]
打开记事本,把下面代码拷进去就行了,然后改名字就ok了
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script language=JavaScript1.2>
scores = new Array(20);
var numTotal=0;
NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
ver4 = (NS4 || IE4) ? 1 : 0;
if (ver4) {
with (document) {
write("<STYLE TYPE='text/css'>");
if (NS4) {
write(".parent {position:absolute; visibility:visible}");
write(".child {position:absolute; visibility:visible}");
write(".regular {position:absolute; visibility:visible}")
}
else {
write(".child {display:none}")
}
write("</STYLE>");
}
}
function getIndex(el) {
ind = null;
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].pageY +document.layers[firstInd].document.height;
for (i=firstInd+1; i<document.layers.length; i++) {
whichEl = document.layers[i];
if (whichEl.visibility != "hide") {
whichEl.pageY = nextY;
nextY += whichEl.document.height;
}
}
}
function initIt(){
if (!ver4) return;
if (NS4) {
for (i=0; i<document.layers.length; i++) {
whichEl = document.layers[i];
if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide";
}
arrange();
}
else {
divColl = document.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");
if(whichEl!=whichEl1) {
whichEl.style.display = "none";
}
}
whichEl1 = eval(el + "Child");
if (whichEl1.style.display == "none") {
whichEl1.style.display = "block";
}
else {
whichEl1.style.display = "none";
}
}
else {
whichEl = eval("document." + el + "Child");
for(i=1;i<=numTotal;i++){
whichEl = eval("document." + scores[i] + "Child");
if(whichEl!=whichEl1) {
whichEl.visibility = "hide";
}
}
if (whichEl.visibility == "hide") {
whichEl.visibility = "show";
}
else {
whichEl.visibility = "hide";
}
arrange();
}
}
onload = initIt;
</script>
</head>
<body>
<div id=KB1Parent>
<a onClick="expandIt('KB1');return false" href="#"><img src="plus.gif" border=0>97狼黄金自选集</a>
</div>
<div class=child id=KB1Child>
<a href="#"><img src="blank.gif" border=0>97狼</a><br>
<a href="#"><img src="blank.gif" border=0>爱情宣言</a><br>
<a href="#"><img src="blank.gif" border=0>这一次我绝不放手</a><br>
</div>
<div id=KB2Parent>
<a onClick="expandIt('KB2');return false" href="#"><img src="plus.gif" border=0>longer专辑</a>
</div>
<div class=child id=KB2Child>
<a href="#"><img src="blank.gif" border=0>longer</a><br>
<a href="#"><img src="blank.gif" border=0>windflowers</a><br>
<a href="#"><img src="blank.gif" border=0>run to me</a></div>
<div id=KB3Parent>
<a onClick="expandIt('KB3');return false" href="#"><img src="plus.gif" border=0>边界专辑</a>
</div>
<div class=child id=KB3Child>
<a href="#"><img src="blank.gif" border=0>边界</a><br>
<a href="#"><img src="blank.gif" border=0>无情的雨无情的你</a><br>
<a href="#"><img src="blank.gif" border=0>直到世界末日</a><br>
<a href="#"><img src="blank.gif" border=0>紫雨</a><br>
</div>
<script>numTotal=3;scores[1]='KB1';scores[2]='KB2';scores[3]='KB3';</script>
</body>
</html>
下回就省事不用再做那么麻烦的菜单了:d(5:d(5:d(5:d(5:d(5 |