Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


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

[Javascript] Active element


  • From: javascript@xxxxxxxxxx (Andrew Dunn)
  • Subject: [Javascript] Active element
  • Date: Thu, 23 May 2002 13:58:59 +1000

Here is some more info on this question:

I have a frame that I want to scroll when the user puts the mouse over an
element, I have this function:

var keepscrolling;

function scroll(direction) {
	keepscrolling = "true"
	if (direction == "right") {
		while(keepscrolling == "true") {
			parent.main.scrollBy(1,0);
		}
	}
	else {
		parent.main.scrollBy(-1,0);
}


I can't figure out how to get the variable "keepscrolling" to turn to false.
I have tried making it false onmouseout but it doesn't seem to receive any
events when it is in that loop.

Can anyone help me?

Thanks.


-----Original Message-----
From: Andrew Dunn [mailto:andrew@xxxxxxxxxx] 
Sent: Thursday, 23 May 2002 1:22 PM
To: 'javascript@xxxxxxxxxx'
Subject: [Javascript] Active element



Hi,
	how do you tell what element on a page is active? Or if a mouse if
over an element is what I want to do. Thanks.
_______________________________________________
Javascript mailing list
Javascript@xxxxxxxxxx https://lists.LaTech.edu/mailman/listinfo/javascript