[Javascript] Active element

Andrew Dunn andrew at d2k.com.au
Wed May 22 22:58:59 CDT 2002


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 at d2k.com.au] 
Sent: Thursday, 23 May 2002 1:22 PM
To: 'javascript at LaTech.edu'
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 at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript



More information about the Javascript mailing list