Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 09:32 PM
MrBaseball34
Guest
 
Posts: n/a
Default Rollover menu active state

I have a rollover menu at this link:
http://www.amishmkt.com
{Site is still under construction}

How would I make it so that when you are on one of the pages,
the background is highlighted like in this graphic:

http://www.amishmkt.com/images/js_menu.gif

i.e. When you navigate to the Entertainment Centers link, it
would show like in the graphic.
  #2  
Old July 20th, 2005, 09:32 PM
brucie
Guest
 
Posts: n/a
Default Re: Rollover menu active state

In post <a56d0ced.0310090829.56c12f8f@posting.google.com >
MrBaseball34 said...
[color=blue]
> I have a rollover menu at this link:
> http://www.amishmkt.com
> {Site is still under construction}
>
> How would I make it so that when you are on one of the pages,
> the background is highlighted like in this graphic:
>
> http://www.amishmkt.com/images/js_menu.gif
>
> i.e. When you navigate to the Entertainment Centers link, it
> would show like in the graphic.[/color]

http://usenet.alt-html.org/one.html

--
brucie.
10/October/2003 07:24:34 am
  #3  
Old July 20th, 2005, 09:32 PM
John C
Guest
 
Posts: n/a
Default Re: Rollover menu active state

On Fri, 10 Oct 2003 07:25:41 +1000 brucie posted:
[color=blue]
> In post <a56d0ced.0310090829.56c12f8f@posting.google.com >
> MrBaseball34 said...
>[color=green]
> > I have a rollover menu at this link:
> > http://www.amishmkt.com
> >
> > How would I make it so that when you are on one of the pages,
> > the background is highlighted like in this graphic:[/color]
>
> http://usenet.alt-html.org/one.html[/color]

Would you happen to know a way to make that work in NS4 without js? I
haven't found a way, and think there probably isn't. However, by
coincidence this is the last detail remaining on a site I'm converting to
CSS, needing NS4 to render as near as possible to "modern" browsers. So I
thought I'd ask.

--
John C
  #4  
Old July 20th, 2005, 09:32 PM
brucie
Guest
 
Posts: n/a
Default Re: Rollover menu active state

In post <MPG.19efe6f1cb169cee9896d9@news.sunflower.com>
John C said...
[color=blue][color=green]
>> http://usenet.alt-html.org/one.html[/color][/color]
[color=blue]
> Would you happen to know a way to make that work in NS4 without js?[/color]

change the IDs on the links to classes. i.e.

#pageone a.one

<a href... class="one">

etc.


--
brucie.
10/October/2003 04:18:14 pm
  #5  
Old July 20th, 2005, 09:32 PM
Johannes Koch
Guest
 
Posts: n/a
Default Re: Rollover menu active state

John C wrote:[color=blue]
> Would you happen to know a way to make that work in NS4 without js?[/color]

As CSS is implemented through Javascript in NN4, NN4 has no CSS support
when Javascript is switched off.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)

  #6  
Old July 20th, 2005, 09:32 PM
MrBaseball34
Guest
 
Posts: n/a
Default Re: Rollover menu active state

John C <jcliff@delete.email.com> wrote in message news:<MPG.19efe6f1cb169cee9896d9@news.sunflower.co m>...[color=blue]
> On Fri, 10 Oct 2003 07:25:41 +1000 brucie posted:
>[color=green]
> > In post <a56d0ced.0310090829.56c12f8f@posting.google.com >
> > MrBaseball34 said...
> >[color=darkred]
> > > I have a rollover menu at this link:
> > > http://www.amishmkt.com
> > >
> > > How would I make it so that when you are on one of the pages,
> > > the background is highlighted like in this graphic:[/color]
> >
> > http://usenet.alt-html.org/one.html[/color]
>[/color]

I don't understand how I would do that with my CSS.

Here's what I use:

/* Navigation bar ************************************************/

#navbar {
position: absolute;
left:4px;
top:203px;
width:190px;
background-color: #996633;
color: #f0e0c8;
font-size:12px;
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
font-weight: bold;
padding: 0;
margin: 0.5em 0.5em 0.5em 0.5em;
border: solid #996633 3px;
}

#navbar ul {
list-style-type: none;
margin: 0;
border: 2px solid #cc9966;
}

#navMenu li a, #navbar li span {
text-decoration: none;
display: block;
padding: 4px;
margin: 0;
width: 100%;
height: 100%;
border: 3px solid #cc9966;
}

html>body #navMenu a, html>body #navMenu span {
width: auto;
}

#navbar a:link {
background-color: transparent;
color: #f0e0c8;
}

#navMenu a:link {
border-right-style: none;
}

#navbar a:visited {
background-color: transparent;
color: #f0e0c8;
}

#navMenu a:visited {
border-right-color: #eee;
border-right-style: none;
}

#navMenu li.active > a, #navMenu li.active > span {
border-right-color: #999;
border-right-style: 5px solid;
background-color: #f0e0c8;
color: #ff00;
}

#navMenu a:hover {
border-right-color: #996633;
border-right-style: solid 4px;
}

#navbar a:hover {
background-color: #f0e0c8;
color: #996633;
}

#navbar a:focus {
background-color: #f0e0c8;
color: #996633;
}

#navMenu ul {
margin-left: 0em;
}
  #7  
Old July 20th, 2005, 09:32 PM
MrBaseball34
Guest
 
Posts: n/a
Default Re: Rollover menu active state

Well... Nevermind. I figured it out a little easier than your example.
  #8  
Old July 20th, 2005, 09:33 PM
John C
Guest
 
Posts: n/a
Default Re: Rollover menu active state

On Fri, 10 Oct 2003 10:39:50 +0200 Johannes Koch posted:
[color=blue]
> John C wrote:[color=green]
> > Would you happen to know a way to make that work in NS4 without js?[/color]
>
> As CSS is implemented through Javascript in NN4, NN4 has no CSS support
> when Javascript is switched off.[/color]

Holy rollovers, Batman! I suppose the reason I've never heard that before
is because everybody in the world but me already knew it! Still, if
something can be done with CSS without adding JS, wouldn't that be
desirable, at least in principle?

Is there a way to have javascript enhancements for NS4 but hide them from
"newer" browsers? Sort of the inverse of hiding CSS from "older"
browsers.

--
John C
  #9  
Old July 20th, 2005, 09:34 PM
Peter Foti
Guest
 
Posts: n/a
Default Re: Rollover menu active state

"John C" <jcliff@delete.email.com> wrote in message
news:MPG.19f139f2b756a5fa9896da@news.sunflower.com ...[color=blue]
> On Fri, 10 Oct 2003 10:39:50 +0200 Johannes Koch posted:
>[color=green]
> > John C wrote:[color=darkred]
> > > Would you happen to know a way to make that work in NS4 without js?[/color]
> >
> > As CSS is implemented through Javascript in NN4, NN4 has no CSS support
> > when Javascript is switched off.[/color]
>
> Holy rollovers, Batman! I suppose the reason I've never heard that before
> is because everybody in the world but me already knew it! Still, if
> something can be done with CSS without adding JS, wouldn't that be
> desirable, at least in principle?
>
> Is there a way to have javascript enhancements for NS4 but hide them from
> "newer" browsers? Sort of the inverse of hiding CSS from "older"
> browsers.[/color]

You could do browser sniffing and only perform certain Javascript if the
browser is NS4. However, you really would be much better off abandoning
efforts to try and make NS4 render like modern browsers do. If you code
your site semantically correct, then NS4 should degrade to something that is
at least usable. In fact, I would suggest that you don't even try to use
CSS in NS4 (use @import to include your CSS... NS4 does not support @import,
so no CSS would be rendered). NS4 is an evil, evil beast.

Regards,
Peter Foti


  #10  
Old July 20th, 2005, 09:34 PM
John C
Guest
 
Posts: n/a
Default Re: Rollover menu active state

On Mon, 13 Oct 2003 Peter Foti posted:
[color=blue]
> "John C" <jcliff@delete.email.com> wrote in message
> news:MPG.19f139f2b756a5fa9896da@news.sunflower.com ...[color=green]
> > Is there a way to have javascript enhancements for NS4 but hide them from
> > "newer" browsers? Sort of the inverse of hiding CSS from "older"
> > browsers.[/color]
>
> You could do browser sniffing and only perform certain Javascript if the
> browser is NS4. However, you really would be much better off abandoning
> efforts to try and make NS4 render like modern browsers do. If you code
> your site semantically correct, then NS4 should degrade to something that is
> at least usable. In fact, I would suggest that you don't even try to use
> CSS in NS4 (use @import to include your CSS... NS4 does not support @import,
> so no CSS would be rendered). NS4 is an evil, evil beast.[/color]

Hello, Peter. Actually, I've been having pretty good luck with CSS in
NS4. For example, see <http://www.jchap.com/steve>, a css 3-column layout
with header and footer. The only thing seriously amiss when viewed in NS4
is the menu rollovers. This was something I did strictly for css
practice, to see if I could use css to duplicate the appearance of
<http://www.fieldapps.com> which uses table layout and lots of js and
non-validating html. IE5, however, really makes me wanna pull my hair
out! But I think I finally got it to play along, too.

--
John C
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles