PDA

View Full Version : Why does the border disappear when jpg becomes a link?



jwishy
Mar 30th, 2010, 09:19 PM
Okay, this has been a little frustrating so I need a little help. Basically I have a 3 x 3 table with jpgs. 2 pictures in the top row are hyperlinks to web pages and the rest are jpgs with mouse over effects. For some reason I cannot keep the border on the linked pictures. But as soon as I remove the links the border comes back with or with out the mouse over. And yes I am using the hated Dreamweaver CS4. Below is the code for the first 2 rows of the table.

Thanks, Jack

<tr>
<th scope="col"><a href="http://www.aplusfish.com/"><img src="samples/aplus.jpg" width="280" height="220" border="5" alt="" /></a></th>
<th scope="col"><a href="http://www.websitesbyjack.com/gcompute.html"><img src="samples/gcompute.jpg" width="280" height="220" border="5" alt="" /></a></a></th>
<th scope="col"><img src="samples/hero.jpg" width="280" height="220" border="5" onmouseover="MM_swapImage('Image9','','samples/heroroll.jpg',1)" onmouseout="MM_swapImgRestore()" alt="" /></th>
</tr>
<tr>
<th scope="col"><img src="samples/ywh2.jpg" alt="" id="Image2" onmouseover="MM_swapImage('Image2','','samples/ywh2roll.jpg',1)" onmouseout="MM_swapImgRestore()" border="5" height="220" width="280" name="Image2" /></th>
<th scope="col"><img src="samples/ywh3.jpg" alt="" id="Image3" onmouseover="MM_swapImage('Image3','','samples/ywh3roll.jpg',1)" onmouseout="MM_swapImgRestore()" border="5" height="220" width="280" name="Image3" /></th>
<th scope="col"><img src="samples/ywh4.jpg" alt="" id="Image4" onmouseover="MM_swapImage('Image4','','samples/ywh4roll.jpg',1)" onmouseout="MM_swapImgRestore()" border="5" height="220" width="280" name="Image4" /></th>
</tr>

Cliffo
Mar 30th, 2010, 10:04 PM
the problem is dreamweaver =)

lol sorry that was no help

jwishy
Mar 30th, 2010, 11:45 PM
Well I guess that is better then saying I am the problem ;)