hello ive been trying to insert a java code to change the images of my buttons when the mouse is held over i have followed these codes
<head>
<script type="text/javascript">
function mouseOver()
{
document.b1.src ="t5fshop.png"
}
function mouseOut()
{
document.b1.src ="t5fshop2.png"
}
</script>
</head>
<body>
<td width="191"><a href="http://www.bob.com"
onmouseover="mouseOver()"
onmouseout="mouseOut()">
<img border="0" img src="t5fshop.png" name="b1" width="190" height="50" /></a></td>
</body>
in dreamweaver when i click to see what it looks like in a ie6 browser nothing happens to the button when i hold it over? im wondering wether this is because i havent sent the images to a server yet? thanks for your help in advance

the text script type="text/javascript" should hopefully give you a hint that your code is actually JavaScript and not Java. I would recommend asking your question in the HTML, CSS and JavaScript forum.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.