// set up drop downs anywhere in the body of the page. I think the bottom of the page is better.. // but you can experiment with effect on loadtime. 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, 0, 0, TransMenu.reference.bottomLeft); //================================================================================================== // create a dropdown menu //================================================================================================== // the first parameter should be the HTML element which will act actuator for the menu //================================================================================================== var m44 = ms.addMenu(document.getElementById("menu44")); m44.addItem("Organisatie", "/donateurs/organisatie/44/"); m44.addItem("Doelstelling", "/donateurs/doelstelling/153/"); m44.addItem("Geschiedenis", "/donateurs/geschiedenis/151/"); m44.addItem("Europees netwerk", "/donateurs/europees_netwerk/51/"); m44.addItem("IBO-secretariaten", "/donateurs/ibo_secretariaten/124/"); var m52 = ms.addMenu(document.getElementById("menu52")); m52.addItem("FAQ", "/donateurs/faq/52/"); var m12 = ms.addMenu(document.getElementById("menu12")); m12.addItem("Draag 'n steen bij", "/donateurs/draag_'n_steen_bij/12/"); m12.addItem("Word ook donateur", "/donateurs/word_ook_donateur/152/"); m12.addItem("Schenking per notariële akte", "/donateurs/schenking_per_notariële_akte/34/"); m12.addItem("Nalaten", "/donateurs/nalaten/36/"); m12.addItem("Sponsoring", "/donateurs/sponsoring/28/"); var m158 = ms.addMenu(document.getElementById("menu158")); m158.addItem("Bedrijven Bouwen Mee", "/donateurs/bedrijven_bouwen_mee/158/"); m158.addItem("Wat kan uw bedrijf bijdragen aan IBO?", "/donateurs/wat_kan_uw_bedrijf_bijdragen_aan_ibo/159/"); m158.addItem("Bedrijven die IBO sponsoren", "/donateurs/bedrijven_die_ibo_sponsoren/162/"); var m131 = ms.addMenu(document.getElementById("menu131")); m131.addItem("Downloads", "/donateurs/downloads/131/"); var m133 = ms.addMenu(document.getElementById("menu133")); m133.addItem("Links", "/donateurs/links/133/"); var m13 = ms.addMenu(document.getElementById("menu13")); m13.addItem("Contact", "/donateurs/contact/13/"); //================================================================================================== //================================================================================================== // 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(); // console.log( "renderAll" ); }