In my web page, I want to be able to change a picture in one cell of a table when the mouse is over another cell in the same table. Please can anyone tell me how to do this?
For cross browser compatibility you can't assign onMouseOver to a table cell.
If you're using dreamweaver, the easiest way is to insert a rollover image which will create all the code you need. Then go into code view and look at the onMouseover for the <a> tag surrounding the image. MM_swapImage takes 3 parameters, the 1st is the name of the image you want to swap, the 2nd is the file that you want to swap to.
If you're not using Dreamweaver or you need something explained, post again.
Marklar
It's not what you know, it's who knows it that counts.
That's what I was showing you before. I'll explain again in more detail.
I'm not sure how it works in Frontpage but I'm sure it's pretty much the same as Dreamweaver.
Leave the image that you want to change as a normal image. Then make a rollover image in the cell that you want to cause the change. Make the initial picture a transparent GIF and the rollover image should be the one you want for the other picture.
Now look at the code and you should see that the onMouseOver function has 2 or more parameters. In Dreamweaver this is:
onMouseOver="MM_swapImage('imageName', 'path/filename.gif', 1)"
All you need to change is the 'imageName' parameter from the name of the blank image to the name of the one you want to change.
Hope this helps
Marklar
It's not what you know, it's who knows it that counts.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.