if (TransMenu.isSupported()) { //================================================================================================== // create a set of dropdowns //================================================================================================== // the first param should always be down, as it is here // // The second and third param are the top and left offset positions of the menus from their actuators // respectively. To make a menu appear a little to the left and bottom of an actuator, you could use // something like -5, 5 // // The last parameter can be .topLeft, .bottomLeft, .topRight, or .bottomRight to inidicate the corner // of the actuator from which to measure the offset positions above. Here we are saying we want the // menu to appear directly below the bottom left corner of the actuator //================================================================================================== var ms = new TransMenuSet(TransMenu.direction.down, 1, 0, TransMenu.reference.bottomLeft); //================================================================================================== // create a dropdown menu //================================================================================================== // the first parameter should be the HTML element which will act actuator for the menu //关于德真会============================================================================================= var menu1 = ms.addMenu(document.getElementById("about")); menu1.addItem("公司介绍", "/aboutus.aspx"); menu1.addItem("理事长介绍", "/lishiBrief.aspx"); menu1.addItem("专家团队", "/doctorList.aspx"); // send no URL if nothing should happen onclick menu1.addItem("公司新闻", "/news.aspx"); menu1.addItem("保险合作", "/links.aspx"); //================================================================================================== //诊所================================================================================================== var menu2 = ms.addMenu(document.getElementById("clinic")); menu2.addItem("上海虹桥", "viewClinic.aspx?id=4"); menu2.addItem("上海静安", "viewClinic.aspx?id=5"); menu2.addItem("上海金桥", "viewClinic.aspx?id=3"); menu2.addItem("上海联洋", "viewClinic.aspx?id=6"); menu2.addItem("苏州园区", "viewClinic.aspx?id=7"); menu2.addItem("苏州新区", "viewClinic.aspx?id=8"); menu2.addItem("无锡诊所", "viewClinic.aspx?id=10"); menu2.addItem("厦门诊所", "viewClinic.aspx?id=9"); //================================================================================================== //服务================================================================================================== var menu3 = ms.addMenu(document.getElementById("service")); menu3.addItem("服务规范","/serviceOrder.aspx"); menu3.addItem("服务项目","/service.aspx"); menu3.addItem("种植专科","/servicezz.aspx"); menu3.addItem("矫正专科","/servicejz.aspx"); menu3.addItem("美白专科","/servicemb.aspx"); //================================================================================================== //================================================================================================== //var menu4 = ms.addMenu(document.getElementById("news")); //================================================================================================== //================================================================================================== var menu5 = ms.addMenu(document.getElementById("club")); menu5.addItem("申请会员", "/regMember.aspx"); menu5.addItem("会员活动", "/memberActivity.aspx"); menu5.addItem("会员优惠", "/favorable.aspx"); menu5.addItem("网上咨询", "/guestBook.aspx"); menu5.addItem("网上预约", "/webyuyue.aspx"); //================================================================================================== //================================================================================================== var menu6 = ms.addMenu(document.getElementById("hr")); menu6.addItem("招聘信息", "/hr.aspx"); menu6.addItem("培训介绍", "/peixunBrief.aspx"); //================================================================================================== //================================================================================================== // write drop downs into page //================================================================================================== // this method writes all the HTML for the menus into the page with document.write(). It must be // called within the body of the HTML page. //================================================================================================== TransMenu.renderAll(); }