/*** TEil B am besten direkt vorm zamkniencie des cialo-tags einbauen **/ var homePath = '/comm/icm_eng.nsf' ; // Anonymous; *; [PageRead] - Server: CN=DOMWEB6/O=EXT-SENN ; //Extra code to find position: function findPos(){ if(bw.ns4){ //Netscape 4 x = document.layers.layerMenu.pageX y = document.layers.layerMenu.pageY }else{ //other browsers x=0; y=0; var el,temp el = bw.ie4?document.all["divMenu"]:document.getElementById("divMenu"); if(el.offsetParent){ temp = el while(temp.offsetParent){ //Looping parent elements to get the offset of them as well temp=temp.offsetParent; x+=temp.offsetLeft; y+=temp.offsetTop; } } x+=el.offsetLeft; y+=el.offsetTop } //Returning the x and y as an array return [x,y] } pos = findPos(); //Menu object creation oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname oCMenu.frames = 0 //Menu properties oCMenu.pxBetween=0 //Optimierung fuer permanente plazierung innerhalb eines Tisches A oCMenu.fromLeft=pos[0] oCMenu.fromTop=pos[1] oCMenu.onresize="pos = findPos(); oCMenu.fromLeft=pos[0]; oCMenu.fromTop=pos[1]" //Optimierung fuer permanente plazierung innerhalb eines Tisches E oCMenu.rows=1 oCMenu.menuPlacement=0 //oCMenu.offlineRoot="file:///C|/Inetpub/wwwroot/dhtmlcentral/projects/coolmenus/examples/" oCMenu.onlineRoot= "" ; // dbPath ;// "http://www.sennheiserusa.com/newsite/includes/" oCMenu.resizeCheck=1 oCMenu.wait=250 oCMenu.fillImg=dbPath + "/space.gif" ; //"cm_fill.gif" oCMenu.zIndex=0 //Background bar properties oCMenu.useBar=0 oCMenu.barWidth="100%" oCMenu.barHeight="menu" oCMenu.barClass="clBar" oCMenu.barX=0 oCMenu.barY=0 oCMenu.barBorderX=0 oCMenu.barBorderY=0 oCMenu.barBorderClass="" //Level properties - ALL properties have to be spesified in level 0 oCMenu.level[0]=new cm_makeLevel() //Add this for each new level oCMenu.level[0].width=100 oCMenu.level[0].height=43 oCMenu.level[0].regClass="clLevel0" oCMenu.level[0].overClass="clLevel0over" oCMenu.level[0].borderX=0 oCMenu.level[0].borderY=0 oCMenu.level[0].borderClass="clLevel0border" oCMenu.level[0].offsetX= 0 oCMenu.level[0].offsetY= -1 oCMenu.level[0].rows=0 oCMenu.level[0].arrow=0 oCMenu.level[0].arrowWidth=0 oCMenu.level[0].arrowHeight=0 oCMenu.level[0].align="bottom" // oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.GradientWipe(duration=0.01,wipeStyle=10)" //EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number) oCMenu.level[1].width=150; oCMenu.level[1].height=22; oCMenu.level[1].regClass="clLevel1" oCMenu.level[1].overClass="clLevel1over" oCMenu.level[1].borderX=1 oCMenu.level[1].borderY=1 oCMenu.level[1].align="right" oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20 + 20 ; oCMenu.level[1].offsetY=10 oCMenu.level[1].borderClass="clLevel1border" // oCMenu.level[1].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.01)" //EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number) oCMenu.level[2].width=150 oCMenu.level[2].height=22 oCMenu.level[2].offsetX=-(oCMenu.level[0].width-2)/2+20 + 20; // 0 oCMenu.level[2].offsetY=10; // 0 oCMenu.level[2].regClass="clLevel1" oCMenu.level[2].overClass="clLevel1over" oCMenu.level[2].borderClass="clLevel1border" /****************************************** Menu item creation: // myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, null, null, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) *************************************/ oCMenu.makeMenu('top1','','Home',''+homePath + '/root/home','','47','',null,null,'clLevel0','clLevel0over') oCMenu.makeMenu('top2','','About us',''+homePath + '/root/about','','64','',null,null,'clLevel0','clLevel0over') oCMenu.makeMenu('sub2_1','top2','Award Winning Products', ''+homePath + '/root/about_award_products','','','') oCMenu.makeMenu('sub2_1_1','sub2_1','Award Winning Design', ''+homePath + '/root/about_award_products_awards','','','') oCMenu.makeMenu('sub2_2','top2','Our Philosophy', ''+homePath + '/root/about_philosophy','','','') oCMenu.makeMenu('sub2_2_1','sub2_2','Criteria for Success', ''+homePath + '/root/about_philosophy_success','','','') oCMenu.makeMenu('sub2_3','top2','Meet Our Parents', ''+homePath + '/root/about_meet_parents','','','') oCMenu.makeMenu('sub2_3_1','sub2_3','Sennheiser electronic', ''+homePath + '/root/about_meet_parents_sennheiser','','','') oCMenu.makeMenu('sub2_3_2','sub2_3','William Demant', ''+homePath + '/root/about_meet_parents_demant','','','') oCMenu.makeMenu('top3','','Products',''+homePath + '/root/products','','63','',null,null,'clLevel0','clLevel0over') oCMenu.makeMenu('sub3_1','top3','PC ', ''+homePath + '/root/products_pc_headsets','','','') oCMenu.makeMenu('sub3_2','top3','Mobile ', ''+homePath + '/root/products_mobile','','','') oCMenu.makeMenu('sub3_3','top3','Call Centre', ''+homePath + '/root/products_call_centre','','','') oCMenu.makeMenu('sub3_4','top3','Office', ''+homePath + '/root/products_office','','','') oCMenu.makeMenu('sub3_5','top3','Intercom', ''+homePath + '/root/products_intercom','','','') oCMenu.makeMenu('sub3_6','top3','ActiveGard', ''+homePath + '/root/products_activegard','','','') oCMenu.makeMenu('top4','','Support',''+homePath + '/root/support','','59','',null,null,'clLevel0','clLevel0over') oCMenu.makeMenu('sub4_1','top4','FAQs', ''+homePath + '/root/support_faqs','','','') oCMenu.makeMenu('sub4_2','top4','Headset Selector', ''+homePath + '/root/support_hs','','','') oCMenu.makeMenu('sub4_3','top4','Support Contact', '/comm/icm_eng.nsf/FormContactSC?ReadForm&path=support_contact','','','') oCMenu.makeMenu('sub4_4','top4','SafetyZone ', ''+homePath + '/root/support_safety_zone','','','') oCMenu.makeMenu('sub4_5','top4','Warranty', ''+homePath + '/root/support_warranty','','','') oCMenu.makeMenu('top5','','Download',''+homePath + '/root/download','','70','',null,null,'clLevel0','clLevel0over') oCMenu.makeMenu('sub5_1','top5','PC Segment', ''+homePath + '/root/download_pc_segmet','','','') oCMenu.makeMenu('sub5_1_2','sub5_1','PC Product Images', ''+homePath + '/root/download_pc_segmet_pc_images','','','') oCMenu.makeMenu('sub5_2','top5','Mobile Segment ', ''+homePath + '/root/download_mobile_segment','','','') oCMenu.makeMenu('sub5_2_8','sub5_2','Mobile Product Images', ''+homePath + '/root/download_mobile_segment_mobile_images','','','') oCMenu.makeMenu('sub5_3','top5','Office Segment', ''+homePath + '/root/download_office_segment','','','') oCMenu.makeMenu('sub5_3_4','sub5_3','Office Product Images ', ''+homePath + '/root/download_office_segment_office_images','','','') oCMenu.makeMenu('sub5_4','top5','Contact Center', ''+homePath + '/root/download_contact_center','','','') oCMenu.makeMenu('sub5_4_2','sub5_4','Contact Center Images', ''+homePath + '/root/download_contact_center_cc_images','','','') oCMenu.makeMenu('sub5_7','top5','Marketing & Promo', ''+homePath + '/root/download_mrk_promo','','','') oCMenu.makeMenu('sub5_7_2','sub5_7','Brochures (Flyers)', ''+homePath + '/root/download_mrk_promo_brochures','','','') oCMenu.makeMenu('sub5_7_4','sub5_7','Screen Savers', ''+homePath + '/root/download_mrk_promo_s_s','','','') oCMenu.makeMenu('sub5_10','top5','User Manuals ', ''+homePath + '/root/download_manuals','','','') oCMenu.makeMenu('top6','','Press',''+homePath + '/root/press','','45','',null,null,'clLevel0','clLevel0over') oCMenu.makeMenu('sub6_1','top6','Press Releases', ''+homePath + '/root/press_releases','','','') oCMenu.makeMenu('sub6_2','top6','Press Archive 2007', ''+homePath + '/root/press_archive2007','','','') oCMenu.makeMenu('sub6_3','top6','Press Archive 2006', ''+homePath + '/root/press_archive2006','','','') oCMenu.makeMenu('sub6_4','top6','Press Archive 2005', ''+homePath + '/root/press_archive2005','','','') oCMenu.makeMenu('sub6_5','top6','Press Archive 2004', ''+homePath + '/root/press_archive2004','','','') oCMenu.makeMenu('sub6_6','top6','Press Archive 2003', ''+homePath + '/root/press_archive2003','','','') oCMenu.makeMenu('top7','','Jobs',''+homePath + '/root/jobs','','39','',null,null,'clLevel0','clLevel0over') oCMenu.makeMenu('top8','','Events',''+homePath + '/root/events','','52','',null,null,'clLevel0','clLevel0over') oCMenu.makeMenu('top9','','Members Zone',''+homePath + '/root/login','','99','',null,null,'clLevel0','clLevel0over') oCMenu.construct();