Hi everyone! I've got this code which is called to scroll my div tag.
Code:
function ScrollDIVDown()
{
	blnKeepScrolling = true;
	while (blnKeepScrolling = true)
	{
		document.getElementById('divToScroll').scrollTop = 
		document.getElementById('divToScroll').scrollTop + intScrollIncrement;
	}
}
Now this one's called when the user hovers their mouse over an image, when the mouseout event of the same image occurs, I'm trying to alter the variable & therefore exit the loop - but the loop keeps on continuing and the mouseout event never gets fired! Is there a better way to do this please, or is there a JS doevents equivalent?
Code:
<IMG SRC="images/ScrollArrow_Up.jpg" onmouseover="Javascript: ScrollDIVDown()"
onmouseout="javascript: blnKeepScrolling=false;">
Thanks!!