Share this page

# Example: web.image

## Example 1

The following example emulates the user clicking the Home icon to return to the Home page:

    web.image("Home.gif",
        new String[] {"SRC=../../gifs/buttons/Home.gif", "LAST"});

## Example 2: Client–side image map

The following example emulates the user clicking on a client–side image map.

    web.image("dpt_house.gif",
        new String[]{
            "Src=../gifs/dpt_house.gif",
            "MapName=dpt_house",
            "AreaOrdinal=4",
            "LAST"});

## Example 3: Server–side image map

The following example emulates the user clicking on a server–side image map.

    web.image("The Web Developer's Virtual Library",
        new String[]{
            "Alt=The Web Developer's Virtual Library",
            "Ordinal=1",
            "XCoord=91",
            "YCoord=17",
            "LAST"});

## Example 4: Using a suffix as a match criteria

The following example specifies the dpt_house.gif as a suffix. Possible matches are ../gifs/dpt_house.gif, /gifs/dpt_house.gif, gifs/dpt_house.gif, and /dpt_house.gif.

    web.image("dpt_house.gif",
        new String[]{
            "Src/sfx=dpt_house.gif",
            "LAST"});

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: