From: Anthony H. <ah...@ma...> - 2000-12-14 15:53:20
|
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- > |