Would work in Opera. Opera does not support any dynamica manipulations to the page's document structure, but I know you can hide/show nodes, as some menus work in Opera,
Perhaps using style.display = 'none' instead would work? Brothercake (a forum member) should know, as I believe he wrote a menu that works in Opera...
Well maybe not actually - it appears I spoke to soon
Playing with that script, I couldn't get it to work either, for no readily apparent reason, so I looked into Opera's JS specs http://www.opera.com/docs/specs/js/ and display doesn't appear; it doesn't say it isn't supported but it doesn't say it is either. Querying the obj.style.display returned undefined, so maybe display just isn't supported after all
sorry for any confusion ...
"Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark
The menus on this site (CBS.SportsLine.com) work in Opera 6, so presumably it must be supported to some extent. All the code is embedded in the document, though I've not had a chance to study it yet (there's a lot of it).
I was always led to believe that Opera didn't support dynamic modification of pages, so I was pretty surprised when I came across this.
BL
"nam et ipsa scientia potentas est" - Francis Bacon
Well this much is certain - dynamic modification of elements is not supported in Opera - that menu you linked to uses visibility, which is not the same thing as display.
Visibility is supported in Opera - check out http://www.brothercake.com/dropdown/ in opera to see how it can be used to make a menu system - but for a collapse/expand style nav then display would be needed, so it may not (probably wont) work in Opera. I'll do some tests and confirm support/lack of support for this property shortly
"Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark
Comment