More FF issues with growing/shrinking divs
Posted: Wed Mar 30, 2005 3:58 pm
Ok, I got the growing portion of my divs worked out (figuring out the event location (x,y)), but now my divs are shrinking even when I'm not actually mousing out of them, see my code below for my div creations:
my demagDay function looks like this:
that function shouldn't be called unless I "mouseout" of the div element, yet it is even when I move my mouse at all...I could see it shrinking if I mouse over a hyperlink or something, but not just moving the mouse on the div????
any ideas?
Code: Select all
echo "e;<div id=\"e;"e;.$p."e;\"e; class=\"e;mag\"e; onMouseOut=\"e;demagDay('"e;.$p."e;','frdiv')\"e;><span id=\"e;dacon"e;.$p."e;\"e; class=\"e;size1\"e;>"e;.$stuff."e;</span></div>"e;;Code: Select all
function demagDay(where,evt){
if(ie){
var theDiv = event.srcElement;
var t = event.toElement;
while (t){
t = t.parentNode;
if (t == theDiv)
return;
}
if(event.toElement.id != where){
(evt ? shrinkIt(where,evt) : shrinkIt(where));
}
}else{
shrinkIt(where,evt);
}
}any ideas?