-----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)
|/---------------------------------------------------
*----------------------------------------------------