<Related pages> | ||||
| ||||
<!ELEMENT IMG - O EMPTY -- Embedded image --> <!ATTLIST IMG %attrs; -- %coreattrs, %i18n, %events -- src %URI; #REQUIRED -- URI of image to embed -- alt %Text; #REQUIRED -- short description -- longdesc %URI; #IMPLIED -- link to long description (complements alt) -- height %Length; #IMPLIED -- override height -- width %Length; #IMPLIED -- override width -- usemap %URI; #IMPLIED -- use client-side image map -- ismap (ismap) #IMPLIED -- use server-side image map -- >from the HTML 4.0 DTD, "Copyright © W3C, (MIT, INRIA, Keio). All Rights Reserved."
Value | Description |
---|---|
ABSBOTTOM 1 |
Aligns the bottom of the image with the bottom of the current line.
This values is not present in the HTML 4.0 Specification. |
ABSMIDDLE 2 |
Aligns the middle of the image with the middle of the current line.
This values is not present in the HTML 4.0 Specification. |
BASELINE 3 |
Aligns the bottom of the image with the baseline of the text in the line.
This value does the same as align="bottom".
This values is not present in the HTML 4.0 Specification. |
BOTTOM 4 | Aligns the bottom of the image with the baseline of the text in the line. This value does the same as align="baseline". |
LEFT | Places the image at the current left margin, temporarily changing this margin, so that subsequent text is flowed along the image's righthand side. |
MIDDLE 5 | Aligns the middle of the image with the baseline of the text. |
RIGHT | Places the image at the current right margin, temporarily changing this margin, so that subsequent text is flowed along the image's lefthand side. |
TEXTTOP 6 |
Aligns the top of the image with the top of the text in the line.
This values is not present in the HTML 4.0 Specification. |
TOP 7 | Aligns the top of the image with the top of the largest item in the line. |
The numbers correspond to the example below, where you can see how the different values look:
Example 1: 2: 3: 4: 5: 6: 7:
The value LEFT and RIGHT are not included here because they effect the horizontal position on the page and not the vertical position.
The WebTV documentation only mentions the values BOTTOM, CENTER, LEFT, MIDDLE, RIGHT and TOP.
Internet Explorer will show the alternate text in a box when the user holds the mousecursor some time over the image, showing the text as a hint.
It is allowed to supply a height that differs from the real height of the image. The result is that the image is scaled to the given height.
The location clicked is passed to the server as follows. The browser derives a new URL from the URL specified by the HREF attribute by appending '?' the x coordinate ',' and the y coordinate of the location in pixels. The link is then followed using the new URL. For instance, if the user clicked at the location x="10", y="27" then the derived URL will be:
"/cgi-bin/navbar.map?10,27"
|
I would recommend using the USEMAP to create a client-side image map instead of ISMAP. With server-side image maps, the x,y coordinates of the click are sent to the server, and the server decides which URL you see. With client-side image maps, the MAP that relates parts of the image to different URLs is stored in the current file. This saves a round trip to the server, and should present documents to you faster. Since the MAP information is stored in the document you are viewing, the destination URLs can be displayed in the status area as you pass the mouse over the image map.
This attribute can be useful for non-visual browsers.
loop="infinite"
is specified, it will loop
indefinitely.
The WebTV interface implements the loop attribute for use with the ani attribute. Use the loop attribute for an image to signal that an animated image should loop through its animation file forever.
To reduce the size of the image to following actions can be taken :
Note that in either case, the coordinates for the selected attribute should be calculated relative to the image, rather than the web page. That is, the origin of the image is its top-left corner, with positive values of x going to the right and positive values of y going down.
Value | Description |
---|---|
FILEOPEN | The video starts playing as soon as the file is done opening. This is the default. |
MOUSEOVER | The video starts playing when the user moves the mouse cursor over the animation. |
FILEOPEN, MOUSEOVER | If both values are supplied the video will play once as soon as the file is opened and thereafter will play whenever the user moves the mouse over it. |
It is allowed to supply a width that differs from the real width of the image. The result is that the image is scaled to the given width.
<IMG src="IMG1.jpg" alt="A bird" width="56" height="100" border="3">
|
<IMG src="IMG1.jpg" alt="A big bird" width="200" height="75" align="right">
|
Here's a client-side image map :
|
Here's a client-side image map : |
<IMG dynsrc="DYNSRC.avi" controls start="mouseover"
|
Move your mousecursor over the image to start the animation. |