Linking to and changing the contents of a specific cell

P

PCLIVE

I have a table of 4 cells. I'm not sure if I did it correctly, but I gave
each cell an id. For this paticular example, I'm using a cell id of "top2".
This cell currently has a graphic (../2.jpg) within. This graphic has a
hotspot link that links to another graphic file (../2b.jpg). With the way
this is written, the link opens a new window. Can you tell me a way that I
can have this graphic display in cell id "top2", keeping my other cells
unchanged?

This is what I currently have.

<area href="../2b.jpg" shape="rect" coords="98, 4, 142, 29"></map>

<img border="0" src="../2.jpg" id=top2 width="256" height="141"
usemap="#FPMap0"></td>



Thanks,

Paul
 
S

Steve Easton

As long as you're replacing the image in the same cell,
simply use onmousover and onmouseout to change the background image.
You have to specify 3 background image events, 1 to load the default, 1 to
display the mouseover image
and one to redisplay the original on mouseout.

or a 3rd image on mouseout if you desire.

edit the td tag for the cell like this.

<td background="../2.jpg" onmouseover='background="../2b.jpg"'
onmouseout='background="../2.jpg"'

note there are both " and ' used in the mouseover and mouseout script


This works I just tried it.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
S

Steve Easton

Also, if you want the user to have to click the image, change onmouseover to
onlick

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 

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