Cahnge cell background on mouseover

W

Wayne-I-M

Hi

Is it possible to change the background picture of a cell with the mouse is
over another graphic. I could just add another layer and have that shown but
this seems (to my non-expert eyes) to be a little too much.


eg. I have this that shows a layer when you hover the mouse.

<div style="position: absolute; width: 100px; height: 30px; z-index: 3;
left: 101px; top: 306px" id="LayerShowCotopaxi">
<img border="0" src="images/Index_Button/leaf_Cotop.gif" width="98"
height="33" onmouseout="FP_changePropRestore()"
onmouseover="FP_changeProp(/*id*/'LayerShowCotopaxi0',1,'style.visibility','visible')"></div>

Can I add to this to change the background image in another cell at the same
time

Thanks you
 
R

Ronx

Try

<div style="position: absolute; width: 100px; height: 30px; z-index: 3;
left: 101px; top: 306px" id="LayerShowCotopaxi"> <img border="0"
src="images/Index_Button/leaf_Cotop.gif" width="98"
height="33" onmouseout="FP_changePropRestore()"
onmouseover="FP_changeProp(/*id*/'LayerShowCotopaxi0',1,'style.visibility','visible');
FP_changeProp(/*id*/'cellID',1,'style.background-image','url(/images/newbackground.jpg)');"></div>

Not tested.
 
W

Wayne-I-M

Hi Donx

Very thank you


--
Wayne
Manchester, England.



Ronx said:
Try

<div style="position: absolute; width: 100px; height: 30px; z-index: 3;
left: 101px; top: 306px" id="LayerShowCotopaxi"> <img border="0"
src="images/Index_Button/leaf_Cotop.gif" width="98"
height="33" onmouseout="FP_changePropRestore()"
onmouseover="FP_changeProp(/*id*/'LayerShowCotopaxi0',1,'style.visibility','visible');
FP_changeProp(/*id*/'cellID',1,'style.background-image','url(/images/newbackground.jpg)');"></div>

Not tested.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp
 

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