473,769 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.
Jul 20 '05 #1
9 7627
In post <a5************ **************@ posting.google. com>
MrBaseball34 said...
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.


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

--
brucie.
10/October/2003 07:24:34 am
Jul 20 '05 #2
On Fri, 10 Oct 2003 07:25:41 +1000 brucie posted:
In post <a5************ **************@ posting.google. com>
MrBaseball34 said...
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:


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


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
Jul 20 '05 #3
In post <MP************ ************@ne ws.sunflower.co m>
John C said...
http://usenet.alt-html.org/one.html
Would you happen to know a way to make that work in NS4 without js?


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
Jul 20 '05 #4
John C wrote:
Would you happen to know a way to make that work in NS4 without js?


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.)

Jul 20 '05 #5
John C <jc****@delete. email.com> wrote in message news:<MP******* *************** **@news.sunflow er.com>...
On Fri, 10 Oct 2003 07:25:41 +1000 brucie posted:
In post <a5************ **************@ posting.google. com>
MrBaseball34 said...
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:


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


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;
}
Jul 20 '05 #6
Well... Nevermind. I figured it out a little easier than your example.
Jul 20 '05 #7
On Fri, 10 Oct 2003 10:39:50 +0200 Johannes Koch posted:
John C wrote:
Would you happen to know a way to make that work in NS4 without js?


As CSS is implemented through Javascript in NN4, NN4 has no CSS support
when Javascript is switched off.


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
Jul 20 '05 #8
"John C" <jc****@delete. email.com> wrote in message
news:MP******** *************** *@news.sunflowe r.com...
On Fri, 10 Oct 2003 10:39:50 +0200 Johannes Koch posted:
John C wrote:
Would you happen to know a way to make that work in NS4 without js?


As CSS is implemented through Javascript in NN4, NN4 has no CSS support
when Javascript is switched off.


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.


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
Jul 20 '05 #9
On Mon, 13 Oct 2003 Peter Foti posted:
"John C" <jc****@delete. email.com> wrote in message
news:MP******** *************** *@news.sunflowe r.com...
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.


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.


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.c om> 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
Jul 20 '05 #10

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

Similar topics

3
1532
by: Chris Fowler | last post by:
Hi All, I have a question which will probably have a simple answer, but it is one that has eveaded me until now. I want to create a rollover navigation bar which does not inviolve images. I can produce it in Dreamweaver but any text that appears on the buttons comes out blurred on the page - even if the image resolution is high etc. I think I can produce the same effect, but using css and client-sdie JavaScript, but am making a mess of...
13
4943
by: Mr. Clean | last post by:
Can a rolloever menu be done using only CSS, without javascript?
8
2222
by: Mr. Clean | last post by:
I have two images in a rollover: http://www.austinmetrobaseball.com/images/austindivmenu_red.gif and http://www.austinmetrobaseball.com/images/austindivmenu_blue.gif I'd like to be able to do that type of rollover with CSS only. I'm pretty sure it can be done with two spans in the li but can't get anything to work.
4
1960
by: Sandman | last post by:
Ok, so I've used the suggestion I got earlier. <div class="menu level0 haschildren active">Front page</div> .menu.level0.haschildren.active { ... } This doesn't work in IE, of course - so how would you solve the above in IE? I.e. how do you assign multiple selectors to one object and then assign a style to any given combination of said selectors? I can't find any good reference on the above technique, and all selector grouping all...
6
3192
by: AJBopp | last post by:
I'm wrestling with CSS variations between Firefox and IE. I'm trying to create rollover buttons in a menu frame. It is working perfectly in Firefox but in IE only the first button is properly highlighted and linked. The second button, has only a partial "hit area" at the top of the image, although if you click the link, you can see the link border is properly place around the image. The rest of the buttons have no rolloever state or link...
0
1257
by: nospam | last post by:
Hi everybody, the attached portion of code generates a classic rollover menu through CSS. The menu works normally. I'd like to display a small 8x8 pixels icon nearby some menu items, basically those referring to external links. On Firefox and Konqueror everything works perfectly. On IE (6, at the least) however, the menu options with the icon are displayed with a "wrong" height. I can't explain it better than this, just try the following
8
3253
by: mrking | last post by:
Hello, I have a test site running at http://artbymichaelking.com/DS/ As you can see with the navigation I have the image rollover. I do this with CSS via: .companyrollover a{ display: block; width: 95px;
2
1582
by: mrking | last post by:
Before I go ahead and implement this I need to confirm that what I want can be done. The standard image rollover works well, however this time I want to modify it to show the current selected button as the rollover would be until the next menu item is clicked. IE, lets say I have two buttons Company Contact non active state has the image text in grey, rolled over image text is red.
0
9583
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10039
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9860
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8869
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7406
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6668
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5297
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2814
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.