Hello
I was wondering why the following code takes up to a few seconds to process in IE, but almost instant in firefox.
[CODE]
var getchild = document.getElementById(‘specselector’).getElementsByTagName(‘div’);
for (x=1;x<=100;x++){
if (getchild[x]){getchild[x].style.backgroundColor = ”;}
}
It’s function is to remove all background colours from the various divs that are selectable in a rather large (sortof) menu system. I know a few seconds delay doesn’t sound serious, but it’s a delay that will keep happening over and over, depending on where you are in the larger code. Really annoying.
Does anyone have a faster workaround/idea?
Thanks,
Nils