Idocs Guide to HTML

Attribute for <IMG ...>
NAME = "text string"

See also Rollover Images
NAME is used primarily by scripting. NAME gives the image a unique name. For example, the following code creates a rollover image. The image is named "starflower" for identification by the rollover script:

   onMouseOver = "rollover('starflower')" 
   onMouseOut  = "rollout('starflower')" 
   ><IMG SRC="../graphics/rollover_out.gif" 
   ALT="rollover images" BORDER=0
   HEIGHT=130 WIDTH=115
<SCRIPT TYPE="text/javascript">

which gives us this image

rollover images

For more about rollovers see Rollover Images.

Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.