Menu.JSP源碼
menu
.btn input{
background:#FF6600;
border-left:1px #FFFFFF solid;
border-top:1px #FFFFFF solid;
border-right:1px #990000 solid;
border-bottom:1px #990000 solid;
padding-top:4px;
color:#FFFFFF;
}
function newItem(ele){
var pNode;
var pdiv;
var item_name,item_url,item_tip;
var text1,text2,text3;
pNode =ele.parentNode;
pdiv=document.createElement("");
item_hidden=document.createElement("");
text1 =document.createTextNode("子菜單名稱:")
item_name=document.createElement("");
text2 =document.createTextNode("子菜單URL:")
item_url=document.createElement("");
text3 =document.createTextNode("子菜單鏈接說明:")
item_tip=document.createElement("");
pdiv.appendChild(item_hidden);
pdiv.appendChild(text1);
pdiv.appendChild(item_name);
pdiv.appendChild(text2);
pdiv.appendChild(item_url);
pdiv.appendChild(text3);
pdiv.appendChild(item_tip);
pdiv.appendChild(document.createElement(""));
pNode.appendChild(pdiv);
}
function delItem(ele){
var pNode;
var pdiv;
pNode =ele.parentNode.parentNode;
pdiv =ele.parentNode;
pNode.removeChild(pdiv)
}
function newMenu(ele){
var pNode;
var pdiv;
var text1,menunameElement,newmenuBtnElement,delmenuBenElement;
pNode=ele.parentNode.parentNode;
pdiv = document.createElement("");
text1 =document.createTextNode(" 菜單:");
menunameElement =document.createElement("");
newmenuBtnElement=document.createElement(" ");
delmenuBenElement =document.createElement("");
pdiv.appendChild(text1);
pdiv.appendChild(menunameElement);
pdiv.appendChild(delmenuBenElement);
pdiv.appendChild(newmenuBtnElement);
pNode.insertBefore(pdiv,document.getElementById("btn"));
}