473,549 Members | 2,784 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2243
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.dt d">

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

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 #9
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 positionisevery thing.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 #10

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

Similar topics

1
2390
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 2000, using an SqlConnection object to open the database and an SqlCommand object to transfer my SQL text to the database. Is this the "dynamic...
31
3645
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
8471
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 DropTable(p_TableName VARCHAR(30) ) RETURNS VARCHAR(50) LANGUAGE SQL BEGIN ATOMIC
3
6811
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 figure out, if there is a way of using polymorphic way (if that is a word) of doing this particular property. A sample of my code is as follows: ...
1
1274
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 set up my Dynamic Properties. Can I still use Dynamic Properties? Or am I required to set up objects on the form first and use the IDE to create...
7
3375
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 either AND or OR but never mixed together. We can use Northwind database for my question, it is very similar to the structure of the problem on the...
2
1799
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 iptables -I INPUT -s 84.74.xxx.xxx -j DROP where x is the rest of his IP. This automatically blocked him. No more activity came from his IP,...
1
4645
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 ,another row will be created with the same control (I mean another dropdown and 2 button) and so on. and by pressing Remove button the selecetd row will be...
0
3478
by: MaryamSh | last post by:
Create Dynamic Dropdownlist Controls and related event -------------------------------------------------------------------------------- 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 ,another row...
0
7715
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7956
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7808
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6040
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5087
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1057
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.