is there an easier way using CSS?
Thanks
(here's the code if you want to see it)
- Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title></title>
<script type="text/javascript">
var revert = new Array();
var inames = new Array('home','portfolio','references','services','contact');
// Preload
if (document.images) {
var flipped = new Array();
for(i=0; i< inames.length; i++) {
flipped[i] = new Image();
flipped[i].src = "images/"+inames[i]+"2.gif";
}
}
function over(num) {
if(document.images) {
revert[num] = document.images[inames[num]].src;
document.images[inames[num]].src = flipped[num].src;
}
}
function out(num) {
if(document.images) document.images[inames[num]].src = revert[num];
}
</script>
</head>
<body
style="color: rgb(252, 251, 241); background-color: rgb(251, 252, 241);">
<table
style="text-align: left; margin-left: auto; margin-right: auto;"
border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="width: 800px; height: 240px;" colspan="5"
rowspan="1"><img style="width: 800px; height: 240px;"
alt="" src="images/header.gif"></td>
</tr>
<tr>
<td style="width: 216px; height: 36px;"><a
href="home.html"><img alt="" src="images/home1.gif"
style="border: 0px solid ; width: 216px; height: 36px;"
name="home" onmouseout="out(0)" onmouseover="over(0)"></a></td>
<td style="width: 101px; height: 36px;"><a
href="portfolio.html"><img alt=""
src="images/portfolio1.gif"
style="border: 0px solid ; width: 101px; height: 36px;"
name="portfolio" onmouseout="out(1)"
onmouseover="over(1)"></a></td>
<td style="width: 110px; height: 36px;"><a
href="references.html"><img alt=""
src="images/references1.gif"
style="border: 0px solid ; width: 110px; height: 36px;"
name="references" onmouseout="out(2)"
onmouseover="over(2)"></a></td>
<td style="width: 143px; height: 36px;"><a
href="services.html"><img alt=""
src="images/services1.gif"
style="border: 0px solid ; width: 143px; height: 36px;"
name="services" onmouseout="out(3)" onmouseover="over(3)"></a></td>
<td style="width: 230px; height: 36px;"><a
href="contact.html"><img alt=""
src="images/contact1.gif"
style="border: 0px solid ; width: 230px; height: 36px;"
name="contact" onmouseout="out(4)" onmouseover="over(4)"></a></td>
</tr>
<tr>
<td colspan="5" rowspan="1">
<table
style="width: 100%; text-align: left; margin-left: auto; margin-right: auto;"
border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="width: 125px; height: 324px;"
colspan="1" rowspan="3"><img
style="width: 125px; height: 324px;" alt=""
src="images/4.gif"></td>
<td style="width: 552px; height: 17px;"><img
style="width: 552px; height: 17px;" alt=""
src="images/2.gif"></td>
<td colspan="1" rowspan="3"
style="width: 123px; height: 324px;"><img
style="width: 123px; height: 324px;" alt=""
src="images/3.gif"></td>
</tr>
<tr>
<td style=""></td>
</tr>
<tr>
<td style="width: 552px; height: 27px;"><img
style="width: 552px; height: 27px;" alt=""
src="images/1.gif"></td>
</tr>
</tbody>
</table>
<br>
</td>
</tr>
</tbody>
</table>
<br>
</body>
</html>


