473,394 Members | 1,843 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,394 software developers and data experts.

dynamic nav/drop-down...

hi,

I need help with a dynamic nav menu,
http://www.mayacove.com/design/nav/nav.html

it looks like I want it in IE 7, but in FF and IE 6 it's totally messed
up.. in FF the main-nav section looks fine, but the drop-downs are
totally messed up.. in IE6 for some reason the functionality is totally
messed up, I get JavaScript errors, I guess that's for JS group....;)

I adapted this from here,
http://www.javascriptkit.com/script/...leveltab.shtml
which is for sub-menus that go horizontally right underneath main-nav..

I always have difficulties with this, would like to find a method that
works across all browsers... a kind of "formula" that can be applied to
all situations (whether sub-nav is vertical (drop-downs) or horizontal..
if possible...;)

thank you very much...
Jun 27 '08 #1
14 2226
maya wrote:
hi,

I need help with a dynamic nav menu,
http://www.mayacove.com/design/nav/nav.html

it looks like I want it in IE 7, but in FF and IE 6 it's totally messed
up.. in FF the main-nav section looks fine, but the drop-downs are
totally messed up.. in IE6 for some reason the functionality is totally
messed up, I get JavaScript errors, I guess that's for JS group....;)

I adapted this from here,
http://www.javascriptkit.com/script/...leveltab.shtml
which is for sub-menus that go horizontally right underneath main-nav..

I always have difficulties with this, would like to find a method that
works across all browsers... a kind of "formula" that can be applied to
all situations (whether sub-nav is vertical (drop-downs) or horizontal..
if possible...;)

thank you very much...
for the FF problem, it's a padding problem... in this pg,
http://www.webmasterworld.com/forum83/5499.htm

the gray boxes in some of the messages render fine in FF, but I can't
replicate this, I can't find the css code for those gray boxes....

b/c if I just put this code,
font color="#000000" face="arial" size="2">That's the only way you’ll
get a box 300px wide with a border, and <b style="color: black;
background-color: rgb(187, 255, 255);">padding</b>. Doesn't that suck?
</font>

of course it looks nothing like how it looks in above url.. I can't find
css code for this element.. WHY can't FF treat padding as padding??????

thank you........
Jun 27 '08 #2
maya wrote:
hi,

I need help with a dynamic nav menu,
http://www.mayacove.com/design/nav/nav.html
No Doctype! That means you are operating in quirks mode.

What box model the browser uses is dependent on the boxtype.

Mostly, you'll want to use the standards mode box model and you'll need
a strict doctype to trigger that.

I don't really like the standards mode box model, where the width is
the width of the contents not that of the box. But it is consistent and
strict gets rid of some other inconsistencies between browsers.

I'm not saying that will fix your problems, but you'll have a level
playing field.
>
it looks like I want it in IE 7, but in FF and IE 6 it's totally messed
up.. in FF the main-nav section looks fine, but the drop-downs are
totally messed up.. in IE6 for some reason the functionality is totally
messed up, I get JavaScript errors, I guess that's for JS group....;)
Good luck with that.
>
I adapted this from here,
http://www.javascriptkit.com/script/...leveltab.shtml
which is for sub-menus that go horizontally right underneath main-nav..
I'd rewrite the submenus, so that instead of br's you have either a list
or a series of divs.

Jeff
I always have difficulties with this, would like to find a method that
works across all browsers... a kind of "formula" that can be applied to
all situations (whether sub-nav is vertical (drop-downs) or horizontal..
if possible...;)

thank you very much...

Jun 27 '08 #3
Jeff schrieb:
maya wrote:
>hi,

I need help with a dynamic nav menu,
http://www.mayacove.com/design/nav/nav.html

No Doctype! That means you are operating in quirks mode.

What box model the browser uses is dependent on the boxtype.
s/boxtype/doctype/
Jun 27 '08 #4
Christian Kirsch wrote:
Jeff schrieb:
>maya wrote:
>>hi,

I need help with a dynamic nav menu,
http://www.mayacove.com/design/nav/nav.html
No Doctype! That means you are operating in quirks mode.

What box model the browser uses is dependent on the boxtype.

s/boxtype/doctype/
I do have a doctype
( <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN")

I have no idea what s/boxtype/doctype/ refers to..

either way.. what I had to do for FF was wrap the <atags in <div>
tags.. for those FF respects the padding...;)

thank you very much...

Jun 27 '08 #5
maya wrote:
I do have a doctype
( <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN")
Is is a new page? If so you are not "transitioning". Want consistent
rendering then quirks mode best be avoided.

http://en.wikipedia.org/wiki/Quirks_mode
Quirks mode - Wikipedia, the free encyclopedia
http://www.quirksmode.org/css/quirksmode.html
CSS - Quirks mode and strict mode

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Jun 27 '08 #6
maya wrote:
Christian Kirsch wrote:
>Jeff schrieb:
>>maya wrote:
I need help with a dynamic nav menu,
http://www.mayacove.com/design/nav/nav.html

No Doctype! That means you are operating in quirks mode.

What box model the browser uses is dependent on the boxtype.

s/boxtype/doctype/

I do have a doctype
( <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN")
...but an incorrect/incomplete one. See:
http://www.w3.org/QA/2002/04/valid-dtd-list.html

and since these are new pages, use Strict, not Transitional.
http://tekrider.net/pages/faq.php?q=trans
I have no idea what s/boxtype/doctype/ refers to..
Standard editor's note to correct an error.
either way.. what I had to do for FF was wrap the <atags in <div>
tags.. for those FF respects the padding...;)
Try again with a proper DOCTYPE.

BTW, you do know that approximately 10% of your visitors will see no
menu, correct? Those with JavaScript disabled, or stripped by a
corporate firewall will have no navigation.

--
-bts
-Friends don't let friends drive Vista
Jun 27 '08 #7
Beauregard T. Shagnasty wrote:
maya wrote:
>Christian Kirsch wrote:
>>Jeff schrieb:
maya wrote:
I need help with a dynamic nav menu,
http://www.mayacove.com/design/nav/nav.html
No Doctype! That means you are operating in quirks mode.

What box model the browser uses is dependent on the boxtype.
s/boxtype/doctype/
I do have a doctype
( <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN")

..but an incorrect/incomplete one. See:
http://www.w3.org/QA/2002/04/valid-dtd-list.html

and since these are new pages, use Strict, not Transitional.
http://tekrider.net/pages/faq.php?q=trans
>I have no idea what s/boxtype/doctype/ refers to..

Standard editor's note to correct an error.
>either way.. what I had to do for FF was wrap the <atags in <div>
tags.. for those FF respects the padding...;)

Try again with a proper DOCTYPE.

BTW, you do know that approximately 10% of your visitors will see no
menu, correct? Those with JavaScript disabled, or stripped by a
corporate firewall will have no navigation.
hmmmm.. interesting... I still dont get why some users disable
JavaScript (some corporate firewalls disable JavaScript?? THAT I didn't
know... what ARE all the evil things supposedly you can do with
JavaScript?????)

at any rate this is for a site I have to buld at work, the doctype they
actually use is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

can't tell folks at work, where we host a lot of sites, to stop using
JavaScript (so many third-party stuff we use now (that many sites all
over the place use now..) like for examle now for videos we use
BrightCove (http://www.brightcove.com/), when we run polls on the sites,
etc.. all that stuff uses JavaScript code.. I reckon that the users who
have JavaScript disabled are a small minority, I think it's very rare
nowadays for a website to not use JavaScript..)

thank you..


Jun 27 '08 #8
An issue to think about:

If you make dropdown menus with javascript or flash, they will be
invisible to
search engines. And if your pages are invisible to search engines, no
one
will ever look at htem. So you either have to *also* build a static
site map,
that points to everything, or you can build the dropdown menus with
css techniques, rather than client-side processing.

Look at positioniseverything.net (think that's the name) for
examples of (nearly) pure css dropdowns. You still have to do
a bit of javascript hacking to make their solution work for IE6.
But that part is not a search engine impediment.
Jun 27 '08 #9

maya wrote:
>
hmmmm.. interesting... I still dont get why some users disable
JavaScript (some corporate firewalls disable JavaScript?? THAT I didn't
know... what ARE all the evil things supposedly you can do with
JavaScript?????)
I'll leave "evil" to someone else, but I'll tell you I have JS disabled
by default because about 90% of the JS out there is annoying crap that I
don't want to see.

That includes cumbersome drop-down menus. They are a big pain to use and
many times are poorly constructed and/or styled, which makes them an
even bigger pain to use.
I reckon that the users who
have JavaScript disabled are a small minority,
Yes, but that's no reason to dismiss them as unimportant, as you seem to
be doing.
I think it's very rare
nowadays for a website to not use JavaScript.
Using JS is not so much the issue as relying on it.

But this is all off-topic for this newsgroup. It's been discussed
numerous times in alt.html and other groups, so go to those archives for
more on the subject.

--
Berg
Jun 27 '08 #10
salmobytes wrote:
An issue to think about:

If you make dropdown menus with javascript or flash, they will be
invisible to
search engines. And if your pages are invisible to search engines, no
one
will ever look at htem. So you either have to *also* build a static
site map,
that points to everything, or you can build the dropdown menus with
css techniques, rather than client-side processing.

Look at positioniseverything.net (think that's the name) for
examples of (nearly) pure css dropdowns. You still have to do
a bit of javascript hacking to make their solution work for IE6.
But that part is not a search engine impediment.
very nice!!
http://www.positioniseverything.net/css-dropdowns.html

will certainly try this.. thank you very much...

Jun 27 '08 #11
maya wrote:
Beauregard T. Shagnasty wrote:
<snippage>
>maya wrote:
>>I do have a doctype
( <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN")

..but an incorrect/incomplete one. See:
http://www.w3.org/QA/2002/04/valid-dtd-list.html

and since these are new pages, use Strict, not Transitional.
http://tekrider.net/pages/faq.php?q=trans

Try again with a proper DOCTYPE.

BTW, you do know that approximately 10% of your visitors will see no
menu, correct? Those with JavaScript disabled, or stripped by a
corporate firewall will have no navigation.

hmmmm.. interesting... I still dont get why some users disable
JavaScript (some corporate firewalls disable JavaScript?? THAT I
didn't know... what ARE all the evil things supposedly you can do
with JavaScript?????)
Most people who disable it on purpose do it, as Berg mentioned, because
so many authors do annoying crap with it. However, with insecure
browsers (you know the one), hackers can write malicious JavaScript to
do nasty things to your computers. That's why some companies strip it
out.
at any rate this is for a site I have to buld at work, the doctype
they actually use is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Why XHTML? [Why Transitional?] See this page:
http://tekrider.net/html/doctype.php
can't tell folks at work, where we host a lot of sites, to stop using
JavaScript (so many third-party stuff we use now (that many sites all
over the place use now..) like for examle now for videos we use
BrightCove (http://www.brightcove.com/), when we run polls on the
sites, etc.. all that stuff uses JavaScript code.. I reckon that the
users who have JavaScript disabled are a small minority, I think it's
very rare nowadays for a website to not use JavaScript..)
None of mine use it. If you do, it should only be used for fluff, and
not for anything that actually hinders toe operation of your site.

Regarding your drop-down menu, go hire a tester with motor deficiencies
and see how they do with it. Or try navigating it without a mouse.

Google for usability and accessibility studies.

--
-bts
-Motorcycles defy gravity; cars just suck
Jun 27 '08 #12
Beauregard T. Shagnasty replies to hisself:
actually hinders toe operation
s/toe/the <lol Or test the page with your toes instead of your hand.

--
-bts
-Friends don't let friends drive Vista
Jun 27 '08 #13
In article <67*************@mid.individual.net>,
Bergamot <be******@visi.comwrote:
maya wrote:

hmmmm.. interesting... I still dont get why some users disable
JavaScript (some corporate firewalls disable JavaScript?? THAT I didn't
know... what ARE all the evil things supposedly you can do with
JavaScript?????)

I'll leave "evil" to someone else, but I'll tell you I have JS disabled
by default because about 90% of the JS out there is annoying crap that I
don't want to see.

That includes cumbersome drop-down menus. They are a big pain to use and
many times are poorly constructed and/or styled, which makes them an
even bigger pain to use.
I reckon that the users who
have JavaScript disabled are a small minority,

Yes, but that's no reason to dismiss them as unimportant, as you seem to
be doing.
I think it's very rare
nowadays for a website to not use JavaScript.

Using JS is not so much the issue as relying on it.
I agree with Bergamot 110% on all of this. I was slightly disappointed
with his refusal to look into the nature of evil though.

--
dorayme
Jun 27 '08 #14
Beauregard T. Shagnasty wrote:
Beauregard T. Shagnasty replies to hisself:
>actually hinders toe operation

s/toe/the <lol Or test the page with your toes instead of your hand.
I liked it better as 'toe' ;-)

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Jun 27 '08 #15

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

Similar topics

1
by: Guinness Mann | last post by:
When you guys talk about "dynamic SQL," to what exactly are you referring? Is dynamic SQL anything that isn't a stored procedure? Specifically, I use ASP.NET to communicate with my SQL Server...
31
by: NickName | last post by:
/* goal: dynamic evaluation of table row platform: sql 2000 */ use northwind; declare @tbl sysname set @tbl = 'customers' EXEC('select count(*) from ' +@tbl)
7
by: Yaro | last post by:
Hello Is it possible using dynamic SQL in UDF? In Sybase below example work but in DB2 UDB 8.1.3 I get error: "SQL0104N Unexpected element "EXECUTE IMMEDIATE" found....." CREATE FUNCTION...
3
by: MikeY | last post by:
Hi Everyone, I am working in C#, windows forms.My question is this. All my button dynamic controls properties are present and accounted for except for the"FlatStyle" properties. I can't seem to...
1
by: jm | last post by:
I am using (trying) dynamic properties to store a database connection. However, I don't have a connection object on the form. I just do a OdbcConnection in my code. So I can't use the VS IDE to...
7
by: serge | last post by:
How can I run a single SP by asking multiple sales question either by using the logical operator AND for all the questions; or using the logical operator OR for all the questions. So it's always...
2
WhiteRider
by: WhiteRider | last post by:
Hello, I am having some trouble with a guy that has a dynamic IP address. I noticed he is trying to brute-force my SSH account so I used IPtables to drop all incoming packets. The exact command was ...
1
by: MaryamSh | last post by:
Hi, I am creating a Dynamic Search in my application. I create a user control and in Page_load event I create a dynamic dropdownlist and 2 dynamic button (Add,Remove) By pressing Add button...
0
by: MaryamSh | last post by:
Create Dynamic Dropdownlist Controls and related event -------------------------------------------------------------------------------- Hi, I am creating a Dynamic Search in my application. I...
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.