473,383 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Is this a javascript problem?

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
Jul 23 '05 #1
5 1051
In article <31*************@individual.net>, an***********@msn.com
enlightened us with...
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:
--
--
~kaeli~
Why do people who know the least know it the loudest?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2
In article <31*************@individual.net>, an***********@msn.com
enlightened us with...
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.

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

Jul 23 '05 #3
"kaeli" <ti******@NOSPAM.comcast.net> wrote in message
news:MP************************@nntp.lucent.com...
In article <31*************@individual.net>, an***********@msn.com
enlightened us with...
Hi there, I'm developing a site http://camshag.co.uk/art_architecture/
and <snip>


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
Jul 23 '05 #4
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.

--
Rob
Jul 23 '05 #5

"RobG" <rg***@iinet.net.auau> wrote in message
news:Ez*****************@news.optus.net.au...
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.

--
Rob


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
Jul 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Kai Grossjohann | last post by:
It seems that Ctrl-N in Mozilla opens a new empty browser window. That's fine, I don't need to do anything about it. But Ctrl-N in IE appears to clone the current window. Is there a way to...
53
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is...
6
by: Alex Rast | last post by:
First of all, this is not a programming question. I'm a user, not programming in JavaScript. I'm not, however, a novice user or even a power user - I certainly know programming intimately as well...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.