button3.html

    <head><title>button3.html</title>
    <script src=../window.js></script>
    <script src=../examples.js></script>
    </head>
    <body>
    <script>
    m1 = new menu (
        "zoomin",null,
        "zoomout",null,
        "pan",null,
        "zoom all",null
    )
    m1.realSticky(true)
    m1.showAt(10,10)

    b1 = new button("<img src=graphics/zoomin.gif>",null)
    b2 = new button("<img src=graphics/zoomout.gif>",null)
    b3 = new button("<img src=graphics/pan.gif>",null)
    b4 = new button("<img src=graphics/world.gif>",null)
    m2 = new menu()
    m2.addButton(b1)
    m2.addButton(b2)
    m2.addButton(b3)
    m2.addButton(b4)
    m2.realSticky(true)
    m2.showAt(70,10)

    setIconDir("graphics")
    m3 = new menu (
        "zoomin.gif",null,
        "zoomout.gif",null,
        "pan.gif",null,
        "world.gif",null
    )
    m3.realSticky(true)
    m3.showAt(120,10)

    </script>