//Holds the path the the images TransMenu.spacerGif = "/transmenu/x.gif"; // path to a transparent spacer gif TransMenu.dingbatOn = "/transmenu/submenu-on.gif"; // path to the active sub menu dingbat TransMenu.dingbatOff = "/transmenu/submenu-off.gif"; // path to the inactive sub menu dingbat TransMenu.shadowPng = "/transmenu/grey-40.png"; // a PNG graphic to serve as the shadow for mac IE5 TransMenu.backgroundPng = "/transmenu/white-90.png"; // a PNG graphic to server as the background for mac IE5 window.onload = function() { //========================================================================================== // if supported, initialize TransMenus //========================================================================================== // Check isSupported() so that menus aren't accidentally sent to non-supporting browsers. // This is better than server-side checking because it will also catch browsers which would // normally support the menus but have javascript disabled. // // If supported, call initialize() and then hook whatever image rollover code you need to do // to the .onactivate and .ondeactivate events for each menu. //========================================================================================== if (TransMenu.isSupported()) { TransMenu.initialize(); // hook all the highlight swapping of the main toolbar to menu activation/deactivation // instead of simple rollover to get the effect where the button stays hightlit until // the menu is closed. menu1.onactivate = function() { document.getElementById("Rumah").className = "hover"; }; menu1.ondeactivate = function() { document.getElementById("Rumah").className = ""; }; menu2.onactivate = function() { document.getElementById("Apartemen").className = "hover"; }; menu2.ondeactivate = function() { document.getElementById("Apartemen").className = ""; }; menu3.onactivate = function() { document.getElementById("TRU").className = "hover"; }; menu3.ondeactivate = function() { document.getElementById("TRU").className = ""; }; menu4.onactivate = function() { document.getElementById("Tanah").className = "hover"; }; menu4.ondeactivate = function() { document.getElementById("Tanah").className = ""; }; menu5.onactivate = function() { document.getElementById("IklanMini").className = "hover"; }; menu5.ondeactivate = function() { document.getElementById("IklanMini").className = ""; }; //document.getElementById("azradewina").onmouseover = function() { // ms.hideCurrent(); // this.className = "hover"; //} //document.getElementById("azradewina").onmouseout = function() { this.className = ""; } } }