I am currently messing around with the html put out by photoshop CS3.
I am attempting to create a menu from a sliced image. When areas of the image are MouseOvered, I need a different image to replace it.
Even though i'm changing the image source, only the first picture on the menu changes.
Below is a section of the html:
The site can be viewed here....Hover over the first two menu items to see what I mean.Code:<tr> <td onMouseOver="document.getElementById('hide').style.display='none';document.getElementById('show').style.display='inline';" onMouseOut="document.getElementById('show').style.display='none';document.getElementById('hide').style.display='inline';"> <img src="images/smiths_04.gif" width="105" height="38" alt="" id="hide"><img src="images/smiths_04a.gif" id="show" style="display:none" /></td> <td> <img src="images/Smiths_05.gif" width="16" height="38" alt=""></td> <td onMouseOver="document.getElementById('hide').style.display='none';document.getElementById('show').style.display='inline';" onMouseOut="document.getElementById('show').style.display='none';document.getElementById('hide').style.display='inline';"> <img src="images/smiths_06.gif" width="195" height="38" alt="" id="hide"><img src="images/smiths_06a.gif" id="show" style="display:none" /></td>
Thanks in advance!



Reply With Quote

Bookmarks