JAVA腳本寫的主要過程
<html>
<head>
<meta http
<title>導航菜單</title>
<style type=
background
}
ntentStyle{
background
}
a{
color:blue;
}
body{
font
}
</style>
</head>
<body>
<script language=
<!
var layerTop=
var layerLeft=
var layerWidth=
var titleHeight=
var contentHeight=
var stepNo=
var itemNo=
document
function addItem(itemTitle
itemHTML=
document
itemNo++;
}
//添加菜單標題和內容
addItem(
addItem(
addItem(
addItem(
addItem(
addItem(
document
emsLayer
toItemIndex=itemNo
function changeItem(clickItemIndex){
toItemIndex=clickItemIndex;
if(toItemIndex
runtimes++;
if(runtimes>=stepNo){
onItemIndex=toItemIndex;
runtimes=
else
setTimeout(
}
function moveUp(){
for(i=onItemIndex+
eval(
}
function moveDown(){
for(i=onItemIndex;i>toItemIndex;i
eval(
}
changeItem(
//
</script>
</body>
From:http://tw.wingwit.com/Article/program/net/201311/12186.html