Hey, I’m trying to make an animation that repeats over and over again, I need the script to be short, so I was wondering if someone could modify this one for me?
[code]
<HTML>
<HEAD>
<title>JavaScript Example</title>
<SCRIPT type=”text/javascript”>
function up()
{
document.mypic.src=”up.gif”
}
function down()
{
document.mypic.src=”down.gif”
}
</SCRIPT>
</HEAD>
<BODY>
<CENTER>
<h2>Sample Animation</h2>
<A HREF=”http://www.htmlgoodies.com”
onMouseOver=”up()”
onMouseOut=”down()”>
<IMG SRC=”down.gif”
NAME=”mypic”
BORDER=0>
</BODY>
</HTML>
I need it so that instead of the onMouseOver and onMouseOut, it starts automaticly playing the two images over and over again.
Oringinaly I was useing an HTML <SPAN> code, but whenever I wanted to edit it it would take days to retype each field.