I'm trying to change the images between "active", "hover" and "pressed," but
it isn't working.
Here is my code:
<script language="JavaS cript" type="text/javascript">
<!--
function mouseover(sourc e)
{
// alert("source over is '" + source + "'");
document[source].src = eval("../images/" + source + "f2.gif");
}
function mousedown(sourc e)
{
// alert("source down is '" + source + "'");
document[source].src = eval("../images/" + source + "f3.gif");
}
function mouseout(source )
{
// alert("source out is '" + source + "'");
document[source].src = eval("../images/" + source + ".gif");
}
-->
</script>
and it is called from within HTML by this:
<a href="belts2.ph p?belt=yellow">
<img src="../images/Yellow.gif" name="yellow"
onMouseOver="mo useover('yellow ')"
onMouseDown="mo usedown('yellow ')"
onMouseOut="mou seout('yellow') "
alt="Yellow Button" id="yellow" border="0"></a></td>
I haven't done this in years and years so I need a quick refresher on what
I'm doing wrong.
TIA, Lee
it isn't working.
Here is my code:
<script language="JavaS cript" type="text/javascript">
<!--
function mouseover(sourc e)
{
// alert("source over is '" + source + "'");
document[source].src = eval("../images/" + source + "f2.gif");
}
function mousedown(sourc e)
{
// alert("source down is '" + source + "'");
document[source].src = eval("../images/" + source + "f3.gif");
}
function mouseout(source )
{
// alert("source out is '" + source + "'");
document[source].src = eval("../images/" + source + ".gif");
}
-->
</script>
and it is called from within HTML by this:
<a href="belts2.ph p?belt=yellow">
<img src="../images/Yellow.gif" name="yellow"
onMouseOver="mo useover('yellow ')"
onMouseDown="mo usedown('yellow ')"
onMouseOut="mou seout('yellow') "
alt="Yellow Button" id="yellow" border="0"></a></td>
I haven't done this in years and years so I need a quick refresher on what
I'm doing wrong.
TIA, Lee
Comment