Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Images and image maps – PB Docs 90 – PowerBuilder Library

Images and image maps – PB Docs 90

Images and image maps

Use your favorite image editing tool to create image files
and add them to your HTML page or JSP file. You can use any image
format supported by the major browser vendors.

Inserting images

You can insert images
in both Page view and Source view of the HTML Editor. You can define
attributes for the inserted image in the Image Properties dialog
box.

Table 5-1: Attributes
you can set in the Image Properties dialog box
Image properties page IMG element attributes definable through
user interface
Image SRC, ALT, LOWSRC, ISMAP, USEMAP, ID
Layout ALIGN, WIDTH, HEIGHT, HSPACE, VSPACE, BORDER
Video DYNSRC, CONTROLS, START, LOOP
Inline Styles All inline style attributes (see Chapter 4, “Working with Style Sheets
and Framesets”
)
Advanced All attributes and attribute values you
want to set for the image object

proc.gif To insert an image:

  1. Put the insertion point where you want
    to insert the image.

  2. Select Insert>Image from the menu bar.

    The Image Properties dialog box displays.

    imgs010.gif

  3. Click the Browse button (…) to select an image
    file using the URL Picker.

    or

    Type the URL for the image in the Image Location text
    box.

  4. Set other image attributes as needed and click
    OK.

Setting height and width attributes for images

After
you insert an image in Page view, the editor displays the dimensions
of the image in the Properties dialog box. However, these are default
values and are not automatically included in the HTML source.

If you resize the image or explicitly set different values,
the HEIGHT and WIDTH attributes and their values will be included.
Use the following steps if you want the default
values
included in the HTML source.

proc.gif To have HEIGHT and WIDTH attributes added to the
HTML source:

  1. In Page view, right-click the image and
    select Properties from the pop-up menu.

  2. On the Layout tab, change the Height and Width
    values, or retype them, and click Apply.

    Source view will now show HEIGHT and WIDTH in the IMG element.

note.gif If you know the image dimensions If you know the image dimensions, work in Source view and
type the HEIGHT and WIDTH attributes in the IMG element. For example:

Converting the image toa hyperlink

proc.gif To make the image a hyperlink:

  1. Select
    the image:

    • In Source view, select the entire
      IMG tag.
    • In Page view, drag the cursor over the image or
      use the Shift and arrow keys to highlight the entire image. (Do
      not click on the image so that the resizable selection border displays).
  2. Select Format>Hyperlink from the menu
    bar, and create the link.

    For information on formatting hyperlinks, see Chapter 3, “Working with HTML pages”.

Creating image maps

An image map is an image that links to different files or
URLs depending on the area of the image clicked by the user. Not
all browsers support client-side image maps, but you can still make
this work on the server side.

You can set up the same image to be a client-side and server-side
image map. The client-side processing takes priority in browsers
that support it.

Creating a client-side image map

This is how you set up a client-side image map.

proc.gif To create a client-side image map:

  1. In Page view or Source view of the HTML
    editor, select Insert>Image to insert the image in your
    document.

  2. On the Image tab of the Image Properties dialog
    box, type a pound sign (#) followed by the name of a MAP
    element (which you will create next) in the Corresponding <MAP> Object
    For A Client-Side Image Map text box.

    Click OK.

    In the Source view for the current HTML document, the IMG
    element includes the USEMAP attribute that is assigned to the map
    name you entered:

  3. In Source view, insert a MAP element in the document
    and assign it a NAME attribute that matches the name you typed for
    the USEMAP attribute:

    You can add this to the document source before or after the
    IMG element, or in the Head section.

  4. Inside the MAP element, add the AREA elements
    required to identify different regions of the image. A basic syntax
    is shown here:

Creating a server-side image map

This is how you set up a server-side image map.

proc.gif To create a server-side image map:

  1. In Page view or Source
    view of the HTML editor, select Insert>Image to insert
    the image into your document.

  2. On the Image tab of the Image Properties dialog
    box, select the Use A Server-Side Image Map check box and click
    OK.

    This adds the ISMAP attribute to the IMG element in the source
    for the current Web page.

  3. Select the image and use Format>Hyperlink
    to add a hyperlink.

    The Hyperlink Properties dialog box opens to the Hyperlink
    page. For more information, see “Converting the image to
    a hyperlink”
    .

  4. In the Destination text box on the Hyperlink page,
    specify a URL that points to the server program that processes the
    image map and ends with a path to the map file.

  5. Install a map file on the server that describes
    the shapes within the image and their URLs.

    The format of the map file depends on your server.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x