How to display filename when mouse over object

  • Thread starter Thread starter Matt
  • Start date Start date
M

Matt

Just starting with web pages and need to know how to have the filename
of an image display when the mouse pauses over an image. I'm making a
slideshow and trying both html and moviemaker.
Many thanks.... Matt
 
Matt,

In this html code, the alt= command is what displays as the tool tip:

PapaJohn

<p><img src="PapaJohnProductions.jpg" width="167" height="125" border=2
hspace=10 vspace=10 alt="PapaJohn Productions" align="left"></p>
 
Gazing into my crystal ball I observed (e-mail address removed) (Matt)
writing in
Just starting with web pages and need to know how to have the filename
of an image display when the mouse pauses over an image. I'm making a
slideshow and trying both html and moviemaker.
Many thanks.... Matt

You should be using the ALT attribute in your IMG element anyway. The alt
attribute should contain text describing the image for browsers that are
not displaying images. You can also use the TITLE attribute, which will
come up as a tooltip. If I were you I would put the file name into the
TITLE attribute and a description of the image in the ALT attribute.

<img src="myimage.png" alt="Description of image for non-visual browsers"
title="myimage.png 100x100">
 
Back
Top