Is this a javascript problem?

D

Dominic Myers

Hi there, I'm developing a site http://camshag.co.uk/art_architecture/ and
I'm having a problem with the menu system at the top of the page (The News &
Events one). There are two links that should allow the user to navigate the
posts but only some of them look the way they are supposed to, the others
end up having big gaps between the links. There is no problem with Mozilla,
Opera has a different problem from the one with IE as it shortens the
bar...? I'm racking my brains here and wondering if it's the onmouseover
thing that is causing the problems and would welcome any advice.
Cheers, Dom
 
K

kaeli

Hi there, I'm developing a site http://camshag.co.uk/art_architecture/ and
I'm having a problem with the menu system at the top of the page (The News &
Events one). There are two links that should allow the user to navigate the
posts but only some of them look the way they are supposed to, the others
end up having big gaps between the links. There is no problem with Mozilla,
Opera has a different problem from the one with IE as it shortens the
bar...? I'm racking my brains here and wondering if it's the onmouseover
thing that is causing the problems and would welcome any advice.
Cheers, Dom

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

That means you're in quirks mode.
Try using a doctype with a url. Watch your design get wacky. Then fix it. ;)
This is the doctype you should be using:
--
 
K

kaeli

Hi there, I'm developing a site http://camshag.co.uk/art_architecture/ and
I'm having a problem with the menu system at the top of the page (The News &
Events one). There are two links that should allow the user to navigate the
posts but only some of them look the way they are supposed to, the others
end up having big gaps between the links. There is no problem with Mozilla,
Opera has a different problem from the one with IE as it shortens the
bar...? I'm racking my brains here and wondering if it's the onmouseover
thing that is causing the problems and would welcome any advice.
Cheers, Dom

Oops. *hehehe*

Okay, this is the full doctype:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

A lot of times things get mucked up due to quirks mode, especially in IE.

--
 
D

Dominic Myers

kaeli said:
Oops. *hehehe*

Okay, this is the full doctype:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

A lot of times things get mucked up due to quirks mode, especially in IE.

--
--
~kaeli~
Do not taunt Happy Fun Ball!
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Cheers there kaeli, tried that and it hasn't made any difference. I'm
getting the problems on pages ?id=2, 3, 5, 6, 7 and 9, but no problem on
?id=4, 8, 10, 11, or 12. Anyone any ideas?
Cheers, Dom
 
R

RobG

Dominic Myers wrote:
[...]
Cheers there kaeli, tried that and it hasn't made any difference. I'm
getting the problems on pages ?id=2, 3, 5, 6, 7 and 9, but no problem on
?id=4, 8, 10, 11, or 12. Anyone any ideas?
Cheers, Dom

Turning off JavaScript and viewing the page should help you work out
whether your issues are JavaScript related or not. The page looks
awful in Firefox, turning off JS makes no difference that I can see. I
can't get to the security settings of IE to test whether it makes any
difference in that case (sys admins are wonderful people, aren't
they?).

You should head over to comp.infosystems.www.authoring.html to get some
general advice on site design, deeply nested tables for purely layout
purposes are something less than best practice. Cleaning up the markup
may make it considerably easier to find your errors.

One js error is:

onmouseover="className=\'over_navigation\'"

should be:

onmouseover="className='over_navigation';"

But that will not fix the display errors in Firefox. Try reducing the
code to a minimum that shows the error and likely you will find your
fix. If not, post the minimal code here and someone may fix it for
you.
 
D

Dominic Myers

RobG said:
Dominic Myers wrote:
[...]
Cheers there kaeli, tried that and it hasn't made any difference. I'm
getting the problems on pages ?id=2, 3, 5, 6, 7 and 9, but no problem on
?id=4, 8, 10, 11, or 12. Anyone any ideas?
Cheers, Dom

Turning off JavaScript and viewing the page should help you work out
whether your issues are JavaScript related or not. The page looks
awful in Firefox, turning off JS makes no difference that I can see. I
can't get to the security settings of IE to test whether it makes any
difference in that case (sys admins are wonderful people, aren't
they?).

You should head over to comp.infosystems.www.authoring.html to get some
general advice on site design, deeply nested tables for purely layout
purposes are something less than best practice. Cleaning up the markup
may make it considerably easier to find your errors.

One js error is:

onmouseover="className=\'over_navigation\'"

should be:

onmouseover="className='over_navigation';"

But that will not fix the display errors in Firefox. Try reducing the
code to a minimum that shows the error and likely you will find your
fix. If not, post the minimal code here and someone may fix it for
you.

Too true there, got rid of loads of the tables and the problem disappeared.
Wasn't anything to do with the javascript at all. Thank you both for your
help.
Cheers, Dom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,265
Latest member
TodLarocca

Latest Threads

Top