[snip]
var GLOBAL = this;
...
onmouseover="GLOBAL.window.setInterval(...)"
You don't exactly whether or not `setInterval' is the property of the
`window' (see in different browsers, I've already showed this in topic
related to `alert' property, here's the same):
alert([
'setInterval' in window,
'setInterval' in this,
Object.prototype.hasOwnProperty.call(this, 'setInterval'),
Object.prototype.hasOwnProperty.call(window, 'setInterval'),
'setTimeout' in window,
'setTimeout' in this,
Object.prototype.hasOwnProperty.call(this, 'setTimeout'),
Object.prototype.hasOwnProperty.call(window, 'setTimeout')
]);
The most interesting results for you will be in Chrome and Opera.
So, it's not the pattern that should always be used.
As for me, and that I've already mentioned in similar topic about
`alert', I had a habit to use `window.setTimeout', but have never
wrote `window.alert'. For now I think the best way in code in which
you're sure to write this stuff without any prefixes, simply: `alert',
`setTimeout' and so on.
I won't repeat all that already been said in similar topic about
`alert', but remind, that from the Scope chain point of view -
theoretically in will be the same (searching `window` or
`setTimeout'), but the algorithm of `window.setTimeout' is worse (more
complex) than plain `setTimeout'.
So, why are you after all explanations still continue to propagate the
`window.anyHostObject' instead of plain `anyHostObject'?
/ds