hey there!
I'm having a problem with my css/mouseover script. Here's the problem. I have two items, a text and a picture, which i would like to both change when moving the mouse over both of them... The text works just fine, both the other way around is a problem. I'm not the biggest coder around, so could you help me out please??
thanks!
here's the code:
I'm having a problem with my css/mouseover script. Here's the problem. I have two items, a text and a picture, which i would like to both change when moving the mouse over both of them... The text works just fine, both the other way around is a problem. I'm not the biggest coder around, so could you help me out please??
thanks!
here's the code:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL]
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
a.project {
font-family: Arial, helvetica, sans-serif;
font-style: normal;
font-weight: normal;
font-size: 10pt;
line-height: 13pt;
color: Black;
text-decoration: none;
}
a:hover.project {
font-family: Arial, helvetica, sans-serif;
font-style: normal;
font-weight: bold;
font-size: 10pt;
line-height: 13pt;
color: Black;
text-decoration: none;
}
img.thumbnail {
height: 71px;
width: 71px;
border: 0;
vertical-align: top;
tekst-align: left;
}
</style>
<script type="text/javascript" language="JavaScript">
pic = new Image();
pic1 = new Image();
pic1.src = "images/01_off.gif";
</script>
</head>
<body>
<a href="#"
onMouseOver="document.pic1.src='images/01_on.gif'; return true;"
onMouseOut="document.pic1.src='images/01_off.gif'; return true;">
<img class="thumbnail" name="pic1" SRC="images/01_off.gif"></a>
<a href="#" class=project name="projectnaam"
onMouseOver="document.pic1.src='images/01_on.gif'; return true;"
onMouseOut="document.pic1.src='images/01_off.gif'; return true;">
don bosco plein, eindhoven</a><BR />
</body>
</html>