Home Technical Talk

JavaScript blog help? (animation)

StephenVyas
polycounter lvl 18
Offline / Send Message
StephenVyas polycounter lvl 18
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

  • Angry Beaver
    Options
    Offline / Send Message
    Angry Beaver polycounter lvl 7
    Javascript is client side, the server doesn't need to support it the viewers browser needs to support it and given the fact HTML5 relies heavily on javascript you don't have to worry too much about people not having it. (In other words Wordpress supports javascript, the problem is you need to enter HTML into Wordpress no text as it defaults to)

    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 :)
Sign In or Register to comment.