This is probably an easy one, I'm having some difficulty getting an image to occupy 100% of a cell in a table.
I'm trying to accomodate high resolutions by stretching a slice taken from the graphic.
Here's the code
<table align="left" border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="623">
<script LANGUAGE="JavaScript">
if (screen.width >= 1024)
{
document.write("<img src='Images/StaticBannerLarge.jpg','width=623'>"
;
}
else
{
document.write("<img src='Images/StaticBanner.jpg'>"
;
}
</script>
</td>
<td valign="top" width="100%">
<script LANGUAGE="JavaScript">
if (screen.width >= 1024)
{
document.write("<img src='Images/SliceLarge.jpg','width=100%,height=94'>"
;
}
else
{
document.write("<img src='Images/Slice.jpg'>"
;
}
</script>
</td>
<td valign="top" width="271">
<script LANGUAGE="JavaScript">
if (screen.width >= 1024)
{
document.write("<img src='Images/PhotoLarge.jpg','width=271'>"
;
}
else
{
document.write("<img src='Images/Photo.jpg'>"
;
}
</script>
</td>
</tr>
</table>
Any idea's?
I'm trying to accomodate high resolutions by stretching a slice taken from the graphic.
Here's the code
<table align="left" border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="623">
<script LANGUAGE="JavaScript">
if (screen.width >= 1024)
{
document.write("<img src='Images/StaticBannerLarge.jpg','width=623'>"
}
else
{
document.write("<img src='Images/StaticBanner.jpg'>"
}
</script>
</td>
<td valign="top" width="100%">
<script LANGUAGE="JavaScript">
if (screen.width >= 1024)
{
document.write("<img src='Images/SliceLarge.jpg','width=100%,height=94'>"
}
else
{
document.write("<img src='Images/Slice.jpg'>"
}
</script>
</td>
<td valign="top" width="271">
<script LANGUAGE="JavaScript">
if (screen.width >= 1024)
{
document.write("<img src='Images/PhotoLarge.jpg','width=271'>"
}
else
{
document.write("<img src='Images/Photo.jpg'>"
}
</script>
</td>
</tr>
</table>
Any idea's?