[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HEELP! 2nd Script Animation



Hi everybody,

Below this is my first trying to make an Script,
force I'm not really ready to face thing complicated like this one
and now I'm freeze -I don't know how to go ahead-
 (I hope you can understand me I 'm not so good on English)

There is the problem, I'm trying to make an script that loop a series
of images in html when an user MouseOver, it creates an animation
but, I do it reloading the document, I think this script can work in a
different way,
but I don't know how to getting out.
Does anybody can help me.

I did not want to show my script, but after about ten hours trying to going out
I decided to leave it out.

There is the script...

*********************000000000000*****************************

<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
        var Speed=2000;
        var TimerId
        var TimerSet=false;
        var laurl='<img src="*****THE PATH OF MY URL*****';
        var b=1;
        var c;
        var lastFrame=4;
function startLoop()  {
     TimerSet=!TimerSet
          if (TimerSet)
               Loop();
          else
               kill();
}
function Loop() {
     Imagine=rollImagine();
          TimerId = setTimeout("Loop()", Speed);
}
function rollImagine() {
          if(b<5)
               {c='b'+b;
               document.write ("<CENTER>" + laurl + c + '.gif" border=0>' +
"</CENTER>");
               b=b+1;}
          else
               if (b==lastFrame)
                         b=1;
               document.close();
               clearTimeout (TimerId);
}
function kill () {
     clearTimeout (TimerId);
document.close();
}
</SCRIPT>
</HEAD>
<BODY>
<CENTER>
<a href="" onMouseOver="startLoop()"><img src=" ***START IMAGE*** "
border=0></a></CENTER>
</HEAD>
<BODY>
</BODY>
</HTML>
*********************000000000000*****************************


ps. Sorry for my English.


Read You and...

***********************************
----------------- GET in TOUCH ------------------
***********************************
                          Claudio V. Gaetani
                         gaetani@netway.it
                    http://www.netway.it/~gaetani/
 ________________________________________
*I*I*I*I*I*I*I*I*I*I*I*I*I*I*I*I*I*I*I*I*I*I*I*I*

Today damsel Loneliness comes to me,
sporting her straw hat, lorgnette
and poppy bud, in her soft sway.

Today the fickle young lady is fiendly
and delicately caresses my heart
with her most slender icy touch.

                                         Silvio Rodriguez (Cuba)


--------------------------------------------------------------------
This message came from the mailing list javascript. For help using the
mailing list software, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.