// 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, 3, TransMenu.reference.bottomLeft); //================================================================================================== // create a dropdown menu //================================================================================================== // the first parameter should be the HTML element which will act actuator for the menu //================================================================================================== var menu_labels = ms.addMenu(document.getElementById("menu_labels")); menu_labels.addItem("» Double Dance", "label.php?label_id=1"); menu_labels.addItem("» 12tone records", "label.php?label_id=2"); menu_labels.addItem("» Soundz Good Recordings", "label.php?label_id=3"); var menu_artists = ms.addMenu(document.getElementById("menu_artists")); menu_artists.addItem("» AA Project", "artist.php?artist_id=12"); menu_artists.addItem("» Andrea Paci feat Andrea Love", "artist.php?artist_id=103"); menu_artists.addItem("» BAS & RAM", "artist.php?artist_id=83"); menu_artists.addItem("» Beach Clubbers", "artist.php?artist_id=93"); menu_artists.addItem("» Big Brothers", "artist.php?artist_id=26"); menu_artists.addItem("» Big, Black & Beautiful", "artist.php?artist_id=98"); menu_artists.addItem("» BlinQ Inc.", "artist.php?artist_id=60"); menu_artists.addItem("» Bootz", "artist.php?artist_id=19"); menu_artists.addItem("» Bugle & Smith", "artist.php?artist_id=82"); menu_artists.addItem("» Candice ft. NicoleTyler", "artist.php?artist_id=92"); menu_artists.addItem("» Coolio", "artist.php?artist_id=102"); menu_artists.addItem("» Criziss!!", "artist.php?artist_id=99"); menu_artists.addItem("» D-Code", "artist.php?artist_id=34"); menu_artists.addItem("» DBK feat LeeMac", "artist.php?artist_id=90"); menu_artists.addItem("» Digi Damascus", "artist.php?artist_id=107"); menu_artists.addItem("» DJ Glenn B", "artist.php?artist_id=79"); menu_artists.addItem("» DJ Maurice", "artist.php?artist_id=106"); menu_artists.addItem("» DJ Nagoom", "artist.php?artist_id=59"); menu_artists.addItem("» DJ Tilo", "artist.php?artist_id=75"); menu_artists.addItem("» Fraser", "artist.php?artist_id=80"); menu_artists.addItem("» Groovestylerz", "artist.php?artist_id=62"); menu_artists.addItem("» Jennifer Paige", "artist.php?artist_id=101"); menu_artists.addItem("» Jules & Raoul", "artist.php?artist_id=7"); menu_artists.addItem("» Masta", "artist.php?artist_id=96"); menu_artists.addItem("» Maximus vs. Banks", "artist.php?artist_id=54"); menu_artists.addItem("» Mike Candys & Jack Holiday", "artist.php?artist_id=104"); menu_artists.addItem("» Milk Inc", "artist.php?artist_id=73"); menu_artists.addItem("» Milo.nl vs. CJ Stone", "artist.php?artist_id=57"); menu_artists.addItem("» Open Position ft. Michy", "artist.php?artist_id=61"); menu_artists.addItem("» Parla & Pardoux", "artist.php?artist_id=8"); menu_artists.addItem("» Paul Brugel", "artist.php?artist_id=84"); menu_artists.addItem("» RAM", "artist.php?artist_id=94"); menu_artists.addItem("» Red Impact ft. Ildiko", "artist.php?artist_id=87"); menu_artists.addItem("» Reshum", "artist.php?artist_id=100"); menu_artists.addItem("» Roberto Abigail", "artist.php?artist_id=91"); menu_artists.addItem("» Rockstarzz ft. Antoina Montana & DJ Bo", "artist.php?artist_id=97"); menu_artists.addItem("» Sax Brothers", "artist.php?artist_id=56"); menu_artists.addItem("» Sottobeat ft. Joe Bataan", "artist.php?artist_id=85"); menu_artists.addItem("» Starstylers", "artist.php?artist_id=52"); menu_artists.addItem("» Svenson", "artist.php?artist_id=95"); menu_artists.addItem("» Team X", "artist.php?artist_id=55"); menu_artists.addItem("» Tim Klaasens", "artist.php?artist_id=86"); menu_artists.addItem("» Twynn", "artist.php?artist_id=38"); var menu_shop = ms.addMenu(document.getElementById("menu_shop")); menu_shop.addItem("» Shopping Basket & Checkout", "shop.php"); menu_shop.addItem("» How does it work?", "shop_info.php"); //================================================================================================== //================================================================================================== // 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(); }