CSS - Cascading Style Sheets

Please use this forum to ask our resident IT geeks advice.
Post Reply
User avatar
firestorm_al
Site Admin
Posts: 754
Joined: Mon May 20, 2002 9:56 am
Location: Aberdeen (Scotland - UK)
Contact:

CSS - Cascading Style Sheets

Post by firestorm_al »

Rules :-

All sizes need to be quoted in pixels, percent etc. e.g. "padding-left: 8px;"

All hex colours should have a hash symbol preceding them e.g. background-color: #30308F;
User avatar
firestorm996
Posts: 617
Joined: Tue Jul 16, 2002 10:15 am
Location: Oop North
Contact:

Post by firestorm996 »

Cheers for that Al.

Can you test the one I've just replaced it with? If that's ok we'll ask someone with Netscape to test it again but I'm sure there'll be java issues.
Firestorm996
'98 VTR in black - road whore - track bitch
User avatar
firestorm_al
Site Admin
Posts: 754
Joined: Mon May 20, 2002 9:56 am
Location: Aberdeen (Scotland - UK)
Contact:

Post by firestorm_al »

I'm having a look at the javascript as we speek. Tha page loads up in netscape OK if you comment out the line that loads up the java so it is definetly something to do with that.

Al.
User avatar
firestorm996
Posts: 617
Joined: Tue Jul 16, 2002 10:15 am
Location: Oop North
Contact:

Post by firestorm996 »

If I had access to a document object model hierarchy for netscape I might be able to suss it out.

It's little differences like these which are screwing it up I think:

Explorer:
layer.visibility = true;

Netscape:
layer.visibility = visible;
Firestorm996
'98 VTR in black - road whore - track bitch
User avatar
firestorm_al
Site Admin
Posts: 754
Joined: Mon May 20, 2002 9:56 am
Location: Aberdeen (Scotland - UK)
Contact:

Post by firestorm_al »

Neil, Try commenting out the small section that tests for layers on the top of the .js file. The header and the index page should be able to be displayed then.

The problem will then be that the roll over menus will not be displayed in netscape. This is due to the code using the fillowing two lines:


document.onmouseover = document_onmouseover;
document.onmouseout = document_onmouseout;


Netscape does not support the document.onmouseover of document.onmouseout propertys.

See the following site for browser compatibility with JavaScript :-

http://developer.netscape.com/evangelis ... nt-object/
User avatar
firestorm996
Posts: 617
Joined: Tue Jul 16, 2002 10:15 am
Location: Oop North
Contact:

Post by firestorm996 »

Cheers for that Al

It will probably be tomorrow when I can look at it. I might do a clickable version of the menu, I assume netscape supports the mouseclick property? :wink2
Firestorm996
'98 VTR in black - road whore - track bitch
User avatar
firestorm_al
Site Admin
Posts: 754
Joined: Mon May 20, 2002 9:56 am
Location: Aberdeen (Scotland - UK)
Contact:

Post by firestorm_al »

I've had a sift through the code. It seems that you can't change the properties of style sheet elements in Netscape while the page is being displayed. Your code works by changing the values of the left and top absolute positions of the menu boxes "on the fly".

Have a looks around http://www.dynamicdrive.com to see if they have any suitable replacements that may work on all browsers.

I'll e-malil you a copy of the index page with full HTML tags.

Al.
User avatar
firestorm996
Posts: 617
Joined: Tue Jul 16, 2002 10:15 am
Location: Oop North
Contact:

Post by firestorm996 »

Cheers m8!
Firestorm996
'98 VTR in black - road whore - track bitch
Post Reply