Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > hover

Reply
Thread Tools

hover

 
 
earl
Guest
Posts: n/a
 
      11-12-2003
<a href="...">Link</a>
<br>
<div id="submeny">
Some text....
</div>

a:hover
{
color : #000;
background : #ccc;
}

#submeny
{
display : none;
}

How can I show the submeny when the link is hover-over and then hide it
again when the mouse is not hovering over the link if you know what I mean ?
The submeny should only be shown when mouse cursor is over the link.


 
Reply With Quote
 
 
 
 
Sid Ismail
Guest
Posts: n/a
 
      11-12-2003
On Wed, 12 Nov 2003 23:40:25 +0100, "earl" <> wrote:

: <a href="...">Link</a>
: <br>
: <div id="submeny">
: Some text....
: </div>
:
: a:hover
: {
: color : #000;
: background : #ccc;
: }
:
: #submeny
: {
: display : none;
: }
:
: How can I show the submeny when the link is hover-over and then hide it
: again when the mouse is not hovering over the link if you know what I mean ?
: The submeny should only be shown when mouse cursor is over the link.
:


This is a job for Javascript, not a:hover
http://javascript.internet.com/

Sid

 
Reply With Quote
 
 
 
 
earl
Guest
Posts: n/a
 
      11-12-2003

"Sid Ismail" <> wrote in message
news:...
> On Wed, 12 Nov 2003 23:40:25 +0100, "earl" <> wrote:
>
> : <a href="...">Link</a>
> : <br>
> : <div id="submeny">
> : Some text....
> : </div>
> :
> : a:hover
> : {
> : color : #000;
> : background : #ccc;
> : }
> :
> : #submeny
> : {
> : display : none;
> : }
> :
> : How can I show the submeny when the link is hover-over and then hide it
> : again when the mouse is not hovering over the link if you know what I

mean ?
> : The submeny should only be shown when mouse cursor is over the link.
> :
>
>
> This is a job for Javascript, not a:hover
> http://javascript.internet.com/
>
> Sid
>


Thanks for your reply.

Think I've seen this done before using css but cant find it, I could
obviously be wrong.


 
Reply With Quote
 
Michael Weber
Guest
Posts: n/a
 
      11-13-2003
Hi earl,

[Thu, 13 Nov 2003 00:39:27 +0100/earl]
> > : How can I show the submeny when the link is hover-over and then hide it
> > : again when the mouse is not hovering over the link if you know what I

> mean ?
> > : The submeny should only be shown when mouse cursor is over the link.
> > :
> >
> >
> > This is a job for Javascript, not a:hover
> > http://javascript.internet.com/
> >
> > Sid
> >

>
> Thanks for your reply.
>
> Think I've seen this done before using css but cant find it, I could
> obviously be wrong.


Nope, it is possible, but doesn't work in all browser. Would not
yet use this these days. (afaicr opera6/IE6 had some positional
probs with it)

The thing is to use a positioned <span> inside the a-tag, hide it
per default and display:block it during hovering.

HTH
regs
michael
 
Reply With Quote
 
SteW
Guest
Posts: n/a
 
      11-13-2003
earl wrote:

> How can I show the submeny when the link is hover-over and then hide it
> again when the mouse is not hovering over the link if you know what I mean ?
> The submeny should only be shown when mouse cursor is over the link.


Here's a start - works for gecko based browsers, but not for ie, nor for
opera 6 - don't know about later operas.

http://www.meyerweb.com/eric/css/edge/menus/demo.html

Ste W

 
Reply With Quote
 
Mark Parnell
Guest
Posts: n/a
 
      11-13-2003
Sometime around Thu, 13 Nov 2003 01:15:41 +0000 (UTC), SteW is reported to
have stated:
>
> Here's a start - works for gecko based browsers, but not for ie, nor for
> opera 6 - don't know about later operas.
>
> http://www.meyerweb.com/eric/css/edge/menus/demo.html


Works but is a bit buggy in O7.21.

--
Mark Parnell
http://www.clarkecomputers.com.au
 
Reply With Quote
 
Eric Bohlman
Guest
Posts: n/a
 
      11-13-2003
SteW <> wrote in
news:boulvt$12t$:

> Here's a start - works for gecko based browsers, but not for ie, nor
> for opera 6 - don't know about later operas.
>
> http://www.meyerweb.com/eric/css/edge/menus/demo.html


It works, but not reliably, on Opera 7.21. Sometimes the popup won't
appear, but leaving the link and coming back to it will make it appear. It
almost looks like a z-order problem of some sort (the link itself will
always expand, but sometimes the popup appears to be hidden underneath the
main text).

 
Reply With Quote
 
 
 
Reply

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change cell color when hover VB Programmer ASP .Net 3 06-11-2004 10:09 PM
Everytime I hover cursro over a posting, it crosses out with red mark on it.. on every posting alanb ASP .Net 2 04-23-2004 02:23 PM
Hover button Brad ASP .Net 6 01-25-2004 08:29 PM
Toolbar appears on image hover Paul ASP .Net 2 07-16-2003 04:34 PM
hover help / Tool Tip help in ASP.NET data gris control column msnews.microsoft.com ASP .Net 0 06-26-2003 07:20 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57