| | |
java image animation not working????
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Aug 2006
Posts: 57
Reputation:
Solved Threads: 0
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
<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
•
•
Join Date: Aug 2005
Posts: 216
Reputation:
Solved Threads: 8
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.
Last edited by hooknc; Sep 19th, 2006 at 3:19 pm.
![]() |
Similar Threads
- javascript image animation not working???? (JavaScript / DHTML / AJAX)
- Java Image Handling (Java)
- Can I make a Java Image Editing Photshop-like program (Java)
Other Threads in the Java Forum
- Previous Thread: Hi Frnds can u help me..
- Next Thread: java.lang.NoClassDefFoundError: JBuilder
| Thread Tools | Search this Thread |
911 actionlistener addressbook android api append applet application array arrays automation binary block bluetooth character chat class client code component consumer csv database desktop eclipse error fractal ftp game givemetehcodez graphics gui html ide image input integer j2me japplet java javaarraylist javac javaee javaprojects jmf jni jpanel julia linked linux list loop mac map method methods mobile netbeans newbie number objects online oriented panel print printf problem program programming project projects properties recursion replaydirector reporting researchinmotion rotatetext rsa scanner screen se server set size sms sort sql string swing template test threads time title tree tutorial-sample ubuntu update windows working





