From: Pascal B. <pa...@dy...> - 2000-12-14 18:24:58
|
the idea is correct, but instead of using a while loop I think it would be "safer" to use a setTimeout function. Pascal Bestebroer pa...@dy... http://www.dynamic-core.net > -----Oorspronkelijk bericht----- > Van: dyn...@li... > [mailto:dyn...@li...]Namens Anthony Homer > Verzonden: donderdag 14 december 2000 16:56 > Aan: dyn...@li... > Onderwerp: Re: [Dynapi-Help] Continuous Mouse Feedback > > > Well, I am pretty much a javascript newbie, but I'll throw my 1 cent in > here... > You can't get continuous feedback, but you could set a boolean > value to true > when you get mouseOver and set it false when you get mouseOut. Use that > boolean value to control scrolling rather than using the events > directly and > you should get what you want... > > var bScroll = false; > > function onMouseOver() > { > bScroll = true; > RollText(); > } > > function onMouseOut() > { > bScroll = false; > } > > function RollText() > { > while(bScroll) > //code to scroll goes here > } > > > Im not sure you would want to do it exactly like that, but like I > said, Im a > newbie : ) > > Tony Homer > > ----- Original Message ----- > From: "Joshua Hancik" <jo...@th...> > To: <dyn...@li...> > Sent: Wednesday, December 13, 2000 5:45 PM > Subject: [Dynapi-Help] Continuous Mouse Feedback > > > > I have created a simple nested scrolling layer with both up and down > buttons. > > When mousedOver, these buttons move another layer of text either up or > down the > > desired amount - freakin' amazing, right? However, I would like to have > > 'continuous feedback' such that if the mouse remains over the > button, the > > scrolling continues until the designated coords are reached. I figure > there > > has to be some method of achieving this (perhaps using an onslideend > routine), > > but have, as of yet, not gotten very far with it. > > > > Any insight would be appreciated. > > > > Cheers. > > > > j- > > > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > |