Image appear on mouse roll over

G

Guest

Is it possible to make an image appear when the mouse rolls over certain text
in your webpage? I am using Frontpage 2003.
 
K

Kevin Spencer

Yes. Google "JavaScript onmouseover"

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 
G

Guest

I did what you suggested and found lots of onmouseover script to swap images
and to set text on the status bar but nothing exactly like I was looking for.
Does anyone know the exact script I need?

I have a line of text with a person's name in it. When the mouse scrolls
over the name I would like a picture of that person to pop up and then
disappear when the mouse leaves the name.
 
T

Trevor L.

Try this code

<a href="#"
onMouseover="document.myImage.src='images/display/04-04-18-carole.jpg'"
onMouseout
="document.myImage.src='images/display/04-04-18-trevor.jpg'">
<img src="images/display/04-04-18-trevor.jpg" name="myImage"></a>

Change the src= to your images

Note that the mouseout image is displayed initially

--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au
I did what you suggested and found lots of onmouseover script to swap
images and to set text on the status bar but nothing exactly like I
was looking for. Does anyone know the exact script I need?

I have a line of text with a person's name in it. When the mouse
scrolls over the name I would like a picture of that person to pop up
and then disappear when the mouse leaves the name.


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
B

Brett...

Hang on a second, surely there is much easier was of doing this with FP2003?

Select the image.
From the Format menu select behaviours
From the behaviours window, select Inset > Swap image
Enter the second image properties into the dialogue box that appears.
 

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

Top