[Javascript] Object Detection using Javascript.

Hassan Schroeder hassan at webtuitive.com
Fri Sep 24 09:16:05 CDT 2004


Ben Crane wrote:

> It wasn't on a website I found this. I ran a test
> website locally using apache and using Opera 7, the
> CSS tag overflow: scroll; didn't appear to work and
> the data spilled out of the div tag. 

Mmm, just tried `overflow: scroll` on Opera 7.22/Win and it works.
But I know a couple of years ago I was working on a project using
a lot of CSS2, and basically *nothing* interesting worked in Opera.
Between that and the poor JavaScript support, I just stopped even
worrying about it.

But since we're talking about Opera and I'm just fiddling with a
little experiment -- anyone know how it handles the "load" event?

I've got this currently to handle the difference between IE and Moz:

if ( window.attachEvent )
{
     window.attachEvent("onload",init);
}
else if ( window.addEventListener )
{
     window.addEventListener("load",init,true);
}

:: but neither fires in Op7.22/Win, nor are any errors reported...

??
-- 
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.





More information about the Javascript mailing list