Connecting Tech Pros Worldwide Forums | Help | Site Map

Rollover menu?

Mr. Clean
Guest
 
Posts: n/a
#1: Jul 20 '05
Can a rolloever menu be done using only CSS, without javascript?

Pascal Chevrel
Guest
 
Posts: n/a
#2: Jul 20 '05

re: Rollover menu?


Le 11/08/2003 20:37, Mr. Clean a écrit :
[color=blue]
> Can a rolloever menu be done using only CSS, without javascript?[/color]

Yes, but it won't work in IE. There are examples in meyerweb.com

Pascal

--
FAQ Mozilla/Netscape 7 en français : http://pascal.chevrel.free.fr/
Drag me, drop me, treat me like an object

Mr. Clean
Guest
 
Posts: n/a
#3: Jul 20 '05

re: Rollover menu?


In article <3f37e2ef$0$1127$626a54ce@news.free.fr>,
pascal.chevrel_nospam_@free.fr says...[color=blue]
> Le 11/08/2003 20:37, Mr. Clean a écrit :
>[color=green]
> > Can a rolloever menu be done using only CSS, without javascript?[/color]
>
> Yes, but it won't work in IE. There are examples in meyerweb.com
>[/color]

What makes them NOT work in IE?
Pascal Chevrel
Guest
 
Posts: n/a
#4: Jul 20 '05

re: Rollover menu?


Le 11/08/2003 20:43, Mr. Clean a écrit :
[color=blue]
> In article <3f37e2ef$0$1127$626a54ce@news.free.fr>,
> pascal.chevrel_nospam_@free.fr says...
>[color=green]
>>Le 11/08/2003 20:37, Mr. Clean a écrit :
>>
>>[color=darkred]
>>>Can a rolloever menu be done using only CSS, without javascript?[/color]
>>
>>Yes, but it won't work in IE. There are examples in meyerweb.com
>>[/color]
>
>
> What makes them NOT work in IE?[/color]

The fact that IE doesn't support :hover on anything else but links I guess.

Pascal


--
FAQ Mozilla/Netscape 7 en français : http://pascal.chevrel.free.fr/
Drag me, drop me, treat me like an object

Neil White
Guest
 
Posts: n/a
#5: Jul 20 '05

re: Rollover menu?


Hi Mr Clean,

Mr. Clean asked:[color=blue]
> Can a rolloever menu be done using only CSS, without javascript?[/color]

This link says yes...
http://www.meyerweb.com/eric/css/edge/popups/demo.html

Hope this helps.
Neil


William Starr Moake
Guest
 
Posts: n/a
#6: Jul 20 '05

re: Rollover menu?


On Mon, 11 Aug 2003 18:49:30 GMT, Mr. Clean
<mrclean@protctorandgamble.com> wrote:
[color=blue][color=green][color=darkred]
>> > What makes them NOT work in IE?[/color]
>>
>> The fact that IE doesn't support :hover on anything else but links I guess.
>>[/color]
>
>Well, shit, I wanted to get rid of js for good[/color]

Why? To cater to the small percentage who turn off one of the major
features of the modern web because they're paranoid? They're not worth
it.

Neil White
Guest
 
Posts: n/a
#7: Jul 20 '05

re: Rollover menu?


Hi William,
[color=blue][color=green]
> >Well, shit, I wanted to get rid of js for good[/color][/color]
[color=blue]
> Why? To cater to the small percentage who turn off one of the major
> features of the modern web because they're paranoid? They're not worth
> it.[/color]

To many people a web page's rollover image is about as useful as a wheelie
bin saying thanks when you chuck your junk in. It's kinda funky once or
twice.

The problem is worse than that. Badly scripted JavaScript menus and content
deny many people access to a website's content. (Not only JavaScripted,
other technologies too.) In Europe, law states that buildings must be made
accessible to everyone. Websites aren't even buildings. Moreover, turning
off JavaScript simply isn't an option for someone who uses a screen reader.
It's just not there. So if the site doesn't work without JavaScript, it
doesn't work. Essentially, the site does not exist.

The idea that some buggy come virus paranoia is the main reason for
JavaScript caution (on the part of developers or users) is simply wrong.
It's about much more than that. And you either give a damn, or you don't.
Thankfully, it appears that those who create the Internet environment, in
which you play, do give a hell of a damn.

Best regards,
Neil

P.S. For what it's worth, I happen to love kicking back on the Web looking
at amazing DHTML stuff, and laughing at DHTML/Flash recreations of old, old
games, even playing the new games. One day, I'll beat my darn kids. But, fun
as all that is for me as a fully abled person, that's not the point. That is
the point.


Keith Bowes
Guest
 
Posts: n/a
#8: Jul 20 '05

re: Rollover menu?


William Starr Moake wrote:[color=blue][color=green]
>>
>>I wanted to get rid of js for good[/color]
>
>
> Why? To cater to the small percentage who turn off one of the major
> features of the modern web because they're paranoid? They're not worth
> it.
>[/color]

I guess because JavaScripts are large monsters with no contextual
semantics and don't go well with the web paradigm.


William Tasso
Guest
 
Posts: n/a
#9: Jul 20 '05

re: Rollover menu?


Mr. Clean wrote:[color=blue]
> Can a rolloever menu be done using only CSS, without javascript?[/color]

yes - http://williamtasso.com/usenet/logotest.asp

--
William Tasso


Mr. Clean
Guest
 
Posts: n/a
#10: Jul 20 '05

re: Rollover menu?


>[color=blue]
> The answers you've had so far as "New menu items appear when rolled over".
>
> If you are looking for "Pretty colour change" then see
> http://dorward.me.uk/www/hover/[/color]


Got your demo and started working on it but having troubles.

I am trying to make this css hover menu:

<style>
/* Navigation bar ************************************************/

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

#navbar ul {
list-style-type: none;
margin: 0;
padding: 0;
border-style: none;
}

#navMenu li a, #navbar li span {
text-decoration: none;
display: block;
padding: 0.5ex 0.5ex 0.5ex 0.5ex;
margin: 0;
border-bottom: 0.1ex solid #cc9966;
border-right-width: 1ex;
width: 100%;
height: 100%;
}

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: #fffs;
}

#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: solid;
background-color: #f0e0c8;
color: 996633;
}

#navMenu a:hover {
border-right-color: #cc9966;
border-right-style: solid;
}

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

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

#navMenu ul {
/* margin-left: 1.5em;*/
}

</style>


<div id="navbar" class="menu">
<ul id="navMenu">
<li><a href="tables.html" title="Tables" accesskey="T">Tables</a></li>
<li><a href="bedrooms.html" title="Bedrooms" accesskey="B">Bedrooms</a>
</li>
<li><a href="entert.html" title="Entertainment Centers">Entertainment
Centers</a></li>
<li><a href="office.html" title="Office">Office</a></li>
<li><a href="quilts.html" title="Quilts">Quilts</a></li>
<li><a href="gifts.html" title="Gifts & Food">Gifts &amp; Food</a></li>
</ul>
</div>


look like this image:http://64.191.18.27/~austin1/js_menu.gif

Can it be done?
Tim
Guest
 
Posts: n/a
#11: Jul 20 '05

re: Rollover menu?


Unattributed sources wrote:
[color=blue][color=green][color=darkred]
>>>> What makes them NOT work in IE?[/color][/color][/color]
[color=blue][color=green][color=darkred]
>>> The fact that IE doesn't support :hover on anything else but links I guess.[/color][/color][/color]


On Mon, 11 Aug 2003 18:49:30 GMT,
Mr. Clean <mrclean@protctorandgamble.com> wrote:
[color=blue][color=green]
>> Well, shit, I wanted to get rid of js for good[/color][/color]


On Mon, 11 Aug 2003 11:39:25 -1000,
William Starr Moake <wsmoake@yahoo.com> wrote:
[color=blue]
> Why? To cater to the small percentage who turn off one of the major
> features of the modern web because they're paranoid? They're not worth
> it.[/color]

A stupid assumption, on both counts.

"Stupid" is the right word to use, in association with that assumption
(an ill-educated guess, that has drawn stupid conclusions). There's
many, very good, reasons why people don't use JavaScript, nothing to do
with paranoia, and is no way of determining whether they're a worthy
audience.

--
My "from" address is totally fake. The reply-to address is real, but
may be only temporary. Reply to usenet postings in the same place as
you read the message you're replying to.
NoWhereMan
Guest
 
Posts: n/a
#12: Jul 20 '05

re: Rollover menu?


> The answers you've had so far as "New menu items appear when rolled over".[color=blue]
>
> If you are looking for "Pretty colour change" then see
> http://dorward.me.uk/www/hover/[/color]


Got your demo and started working on it but having troubles.

I am trying to make this css hover menu:

<style>
/* Navigation bar ************************************************/

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

#navbar ul {
list-style-type: none;
margin: 0;
padding: 0;
border-style: none;
}

#navMenu li a, #navbar li span {
text-decoration: none;
display: block;
padding: 0.5ex 0.5ex 0.5ex 0.5ex;
margin: 0;
border-bottom: 0.1ex solid #cc9966;
border-right-width: 1ex;
width: 100%;
height: 100%;
}

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: #fffs;
}

#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: solid;
background-color: #f0e0c8;
color: 996633;
}

#navMenu a:hover {
border-right-color: #cc9966;
border-right-style: solid;
}

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

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

#navMenu ul {
/* margin-left: 1.5em;*/
}

</style>


<div id="navbar" class="menu">
<ul id="navMenu">
<li><a href="tables.html" title="Tables" accesskey="T">Tables</a>
</li>
<li><a href="bedrooms.html" title="Bedrooms" accesskey="B">Bedrooms
</a>
</li>
<li><a href="entert.html" title="Entertainment Centers">Entertainment
Centers</a></li>
<li><a href="office.html" title="Office">Office</a></li>
<li><a href="quilts.html" title="Quilts">Quilts</a></li>
<li><a href="gifts.html" title="Gifts & Food">Gifts &amp; Food</a>
</li>
</ul>
</div>


look like this image:http://64.191.18.27/~austin1/js_menu.gif

Can it be done?
Ulrike Fischer
Guest
 
Posts: n/a
#13: Jul 20 '05

re: Rollover menu?


William Starr Moake <wsmoake@yahoo.com> schrieb:
[color=blue][color=green]
>>Well, shit, I wanted to get rid of js for good[/color]
>
> Why? To cater to the small percentage who turn off one of the major
> features of the modern web because they're paranoid? They're not worth
> it.
>[/color]

I have a friend which is blind. He use a browser with javascript
enabled so you can't call him paranoid. Some days ago I asked him if he
can navigate on a certain page. He said the page is fine. I asked again
if he is able to use the rollover-submenus which work with javascript
and "onmouseover". He told me he never realized that there are submenus
and that he can't enter the subpages. A main part of the site was
"invisible" for him because someone wanted a cool rollover menu. I
don't think the design effect is worth it.

Ulrike Fischer
Mikko Rantalainen
Guest
 
Posts: n/a
#14: Jul 20 '05

re: Rollover menu?


William Starr Moake wrote:[color=blue]
> On Mon, 11 Aug 2003 18:49:30 GMT, Mr. Clean
> <mrclean@protctorandgamble.com> wrote:
>[color=green][color=darkred]
>>>The fact that IE doesn't support :hover on anything else but links I guess.[/color]
>>
>>Well, shit, I wanted to get rid of js for good[/color]
>
> Why? To cater to the small percentage who turn off one of the major
> features of the modern web because they're paranoid? They're not worth
> it.[/color]

I'm not sure if you've already heard it but any piece of software can
have bugs. Have you already met MSBLAST (the worm)? It has nothing to do
with JS but it has a lot to do with default settings of an average
windows box (more than enough ports open by default).

As the reason for why I turn JS support off, for those short moments I
use MSIE at all, can be found from
<URL:http://www.pivx.com/larholm/unpatched/>. Current count is *21*
vulnerabilities if you use latest version of MSIE with *all* the
released patches. You can block most of those vulnerabilities, if you
simply disable JS.

--
Mikko

Closed Thread