Mouseover text for images

G

Guest

I'm using FP 2003. I'm trying have a text layer appear next to an image when the user performs a mouseover event on the image. Is there a way to do this in FP 2003?

Thanks in advance.
 
K

Kevin Spencer

The simplest thing to do is to add a "title" attribute to the image tag.
This will display a tooltip with the text you enter, when the mouse hovers
over the image. Example:

<img src="someimage.jpg" title="This is a ToolTip. It can say anything you
want.">

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

mel said:
I'm using FP 2003. I'm trying have a text layer appear next to an image
when the user performs a mouseover event on the image. Is there a way to do
this in FP 2003?
 
J

Jim Buyens

-----Original Message-----
I'm using FP 2003. I'm trying have a text layer appear
next to an image when the user performs a mouseover
event on the image. Is there a way to do this in
FP 2003?

Yes. I assume the picture and the layer already exist.

1. Select the picture.
2. Display the Layers task pane.
3. Click the Insert button in the Layers task pane,
and then choose Change Property.
4. When the Change Property dialog box appears, select
Select Element. Then, set Element Type to div and
Element ID to the name of your layer.
5. Click the Visibility button, set Visibility Style to
Visible, and click OK.
6. Back in the Change Property dialog box, select
Restore On Mouseout Event then click OK.
7. In the Behaviors task pane, you'll see a new behavior
for onclick. Select the word onclick, then use the
dropdown list to change it to onmouseover.
8. Select the layer, then display the Layers task pane.
9. Make sure the line for your layer begins with a closed
eye lid. If it doesn't click the area in the first
list column until it does.

Be aware, however, that the layer will always appear in
the same absolute position on the page. The picture,
however, can move around because of screen size, line
wrapping, or other factors. If you want to reposition the
layer at browse time, after the browser knows the
picture's exact location, you'll still need to write your
own JavaScript code.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
M

MD WebsUnlimited.com

Hi Mel,

Yes, create the layer then position it at the location you wish to have it
appear. Set it's visibility so that it is hidden. Next select the image and
use the behavior set property for the onmouseover event
--
Mike -- FrontPage MVP '97-'02
http://www.websunlimited.com
FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
----------------------------------------------------------------------------
--------------------
If you think I'm doing a good job, let MS know at (e-mail address removed)

mel said:
I'm using FP 2003. I'm trying have a text layer appear next to an image
when the user performs a mouseover event on the image. Is there a way to do
this in FP 2003?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top