/* 编写说明: * * 1.这个是一个js脚本,必须严格按照js语法编写。 * * 2.你可以写多个数组,但系统最终按照变量名为nodeList的js数组对象来显示,为了整和多个数组, * 你可以在结束时候使用:var nodeList=new Array().concat(communityNodeList,itNodeList,......); * * 3.节点说明: * (1)id :节点的id,套红和打开节点时候要用到,在href没有设置的时候也会被用来组装成href。 * (2)name :显示到界面的文本,你可以使用一些显示用的html脚本编写,但不被推荐。 * (3)href :连接用,如果可以用id自动生成,则你可以不写href(或""),href会被自动设置成"/forum.jsp?fid="+node.id。 * 但如果这个节点你不想有任何连接,那你必须主动声明noHref:true。 * (4)noHref:如果这个值设置了并且不为false,那么这个节点被认为是没有连接的,href失效。 * (5)target:如果要新开页面,可以设置为"_blank"。 * (6)tailHtml:在节点的后面添加单纯的html。 * (7)open :布尔值,设置节点是否默认打开。 * (8)nodeList:子节点,可以无限级延伸。 /*--------------------------------------------------------------------------*/ var BBSNodeList=[ {id:'000', name:"论坛首页",href:"http://bbs.pckids.com.cn/"}, ]; var nodeList=[ {id:'1809', name:'活动专区', open:true, nodeList:[ {id:'1868', name:'北京奥运'}, {id:'1849', name:'童音宝贝秀'} ]}, {id:'1775', name:'同城社区', open:true, nodeList:[ {id:'1869', name:'广州'} ]}, {id:'1770', name:'家家秀客', open:true}, {id:'1776', name:'孕期话题', open:true}, {id:'1767', name:'育儿宝典', open:true, nodeList:[ {id:'1848', name:'幼儿园'} ]}, {id:'1799', name:'母婴街市', open:true}, {id:'1828', name:'资源共享', open:true, nodeList:[ {id:'1780', name:'PS学堂'} ]}, {id:'1838', name:'有问有答', open:true, nodeList:[ {id:'1858', name:'专家答疑'} ]}, {id:'1829', name:'百味生活', open:true, nodeList:[ {id:'1820', name:'健康与美食'}, {id:'1808', name:'情感与家庭'}, {id:'1771', name:'休闲与娱乐'}, {id:'1870', name:'妈咪美容', href:"http://bbs.pclady.com.cn/forum.jsp?fid=2"} ]}, {id:'1782', name:'版务专区', open:true}, {id:'1784', name:'版主特区', open:true}, {id:'1781', name:'回收站', open:true} ]; nodeList=BBSNodeList.concat(favForumNodeList,nodeList);