<head><title>menu1.html</title> <script src=../window.js></script> <script src=../examples.js></script> </head> <body> <script> w = new win(100,100,400,400,"The World") w.setServerURL(MSURL) w.setVar("map",MSMAP) // submit immediately submitWin() function submitWin() { w.setVar("mapsize",w.contentWidth + " " + w.contentHeight) w.submit() } w.setExecOnResize(submitWin) // menus are created with pairs of text/function menu1 = new menu ( "red",setRed, "green",setGreen, "blue",setBlue ) menu1.realSticky(true) // By default, menus disappear after clicking menu1.showAt(130,30) // By default, menus are NOT shown function setRed() { w.setVar("map_countries_class_color","255 0 0") w.submit() } function setGreen() { w.setVar("map_countries_class_color","0 255 0") w.submit() } function setBlue() { w.setVar("map_countries_class_color","0 0 255") w.submit() } </script> </body> <!-- no HTML needed for this page -->