6 replies [Last post]
yostar
yostar's picture
Offline
Regular
Toronto, Ontario, Canada
Last seen: 12 years 27 weeks ago
Toronto, Ontario, Canada
Timezone: GMT-4
Joined: 2003-10-17
Posts: 18
Points: 0

Hi all.
I've been playing around with a set of functions from cross-browser.com called simply 'X'. These 'X' functions are a terrific way of manipulating CSS attributes through javascript, and, as the site name suggests, these functions are supposed to be cross browser compatible.

Unfortunetly, I don't know how true that is. Can you please let me know if the following page (specifically the menu) loads properly in your browser. I've only tested in IE 6 on WinXP... I'm sure it's going to have some major problems so please let me know what happens for you.

here's the site: yostar_menu.asp

BTW - hit refresh a couple of times for alternate backdrops Wink

Yoav Schwartz
YMS Dynamics

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 15 hours 38 min ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

cross-browser.com : friend or foe ?

Hi yostar,
First thing I noted when looking at crossbrowser.com in Netscape, none of the content is displayed Sad
I think crossbrowser is fine if you happen to use IE Smile in Netscape, JavaScript errors show up on the cross browser site in the JavaScript Console.

The menu you have seems to work on your demo page but the content varies in different browsers.
A concern if you are interested in usability is that screen readers wouldn't have a clue what was going on with the way the menu is marked up.

Without JavaScript or CSS the menu is unusable.

Nice sliding effect though Smile

yostar
yostar's picture
Offline
Regular
Toronto, Ontario, Canada
Last seen: 12 years 27 weeks ago
Toronto, Ontario, Canada
Timezone: GMT-4
Joined: 2003-10-17
Posts: 18
Points: 0

cross-browser.com : friend or foe ?

Thanks Tony.
This was my first attempt at creating a parent-child menu. I did the best I could with my limited skills in javascript...

any idea on how I can get this thing more cross browser compatible?
(all the code is directly in the source of the page)

Yoav Schwartz
YMS Dynamics

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 15 hours 38 min ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

cross-browser.com : friend or foe ?

Hi yostar,
The menu works as it is, it's the rest of the page content that isn't displayed in Netscape. Sad
To improve the menu think about how it would be displayed without JavaScript or CSS.
It would be better semantically to use Unordered lists but that may require more effort and time then you have available, so see if you can position each sub menu straight under it's top menu.
Then think about how the menu display when JavaScript and or CSS are disabled.
But mostly find out why the content doesn't show up in Netscape.

Hope that helps.

yostar
yostar's picture
Offline
Regular
Toronto, Ontario, Canada
Last seen: 12 years 27 weeks ago
Toronto, Ontario, Canada
Timezone: GMT-4
Joined: 2003-10-17
Posts: 18
Points: 0

cross-browser.com : friend or foe ?

so the menu actually works in netscape - this is better news than i was expecting!

i see your point - i'll try structuring the menu without css and scripts in mind...

if the content doesn't show at all it might have something to do with xShow('div_ID') , xHide('div_ID') functions.

I'll play around with it.
Thanks for your help Tony.

Yostar

Yoav Schwartz
YMS Dynamics

yostar
yostar's picture
Offline
Regular
Toronto, Ontario, Canada
Last seen: 12 years 27 weeks ago
Toronto, Ontario, Canada
Timezone: GMT-4
Joined: 2003-10-17
Posts: 18
Points: 0

cross-browser.com : friend or foe ?

Tony,
I just realized that I set my content windows to a z-index of -3... this was to ensure that they would be under the div layer that closes the menu when hovered over (i.e. when you get off the menu, it closes)...

would a negative valued z-index not show up in netscape?

Yoav Schwartz
YMS Dynamics

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 15 hours 38 min ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

cross-browser.com : friend or foe ?

Hi yostar,
I just did a quick test and negative z-index seems to put the object behind backgrounds.

Your content shows up now so that must have been the problem.