I'd like to start on a portfolio that would allow visitors to 'mouseover' an image, allowing them to watch a short .gif animation cycle. (Is there a way to hide the mouse cursor while it's hovering over the image?)
Also, can anyone suggest a free blog hosts that support javascript? (i was going to use wordpress, but as far as I can see.... they won't support it)
I think the code below, would basically work for my intended purpose. (Or would it?)
<HTML>
<HEAD>
<TITLE>Animated Image</TITLE>
</HEAD>
<BODY>
<!-- (* Another free JavaScript © from JavaScript-FX.com *) -->
<SCRIPT LANGUAGE="javascript" SRC="javascript/JSFX_AnimatedRollovers.js" TYPE="text/javascript">
</SCRIPT>
<SCRIPT LANGUAGE="javascript" TYPE="text/javascript">
<!--
JSFX.AnimatedRollover("home", "images/home/", 5, ".gif");
//-->
</SCRIPT>
<A HREF="index.html"
onMouseOver="JSFX.aniOn('home')"
onMouseOut="JSFX.aniOff('home')">
<IMG SRC="images/home/0.gif" BORDER="0" NAME="home">
</A>
</BODY>
</HTML>
Thanks,
Steve
Replies
There's no way to vet the code itself without knowing wtf the javascript/JSFX_AnimatedRollovers.js code contains but it looks like it'd be fine. God knows why you'd be using a .gif though, use a jpg or a png.
And please don't capitalize your html tags. It's just ugly