By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,083 Members | 1,957 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,083 IT Pros & Developers. It's quick & easy.

Suggestion for a new pseudoclass ":lastclickedon" or so

P: n/a
Hi,

it would be useful to have a pseudoclass which applies between the time,
a link has been clicked on and the time, the next link on the same page
has been clicked on.
Imagine a navigation frame with links targeted to another frame. With
the suggested pseudoclass, the link in the navigation menu, that is
related to the page shown, can be discriminated easily, so you always
know, where you are.
I was thinking, that this is the purpose of the ":active" pseudoclass,
but this is not the case, as stated in

http://www.w3.org/TR/CSS21/selector....pseudo-classes.

":active" holds only until the release of the button. Or am I wrong?
Dominik

Sep 15 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
dominik lenné wrote:
":active" holds only until the release of the button. Or am I wrong?
:active seems to stay active until the focus is moved to another
element. Most of the time the user will not click on a link then quickly
click away again in time to select something else before the next page
loads.

--
| Brendan Gillatt |
| brendan {at} brendan \removethis// gillatt {dot} co {dot} uk |
| http://www.brendangillatt.co.uk |
| PGP Key: pgp.mit.edu:11371/pks/lookup?op=get&search=0x6E265E61|
Sep 15 '06 #2

P: n/a
dominik lenné wrote:
Hi,

it would be useful to have a pseudoclass which applies between the time,
a link has been clicked on and the time, the next link on the same page
has been clicked on.
:focus?
Sep 15 '06 #3

P: n/a
Brendan Gillatt wrote:
dominik lenné wrote:
>":active" holds only until the release of the button. Or am I wrong?

:active seems to stay active until the focus is moved to another
element.
Bug in IE. :active should only remain active while the element is being
activated (e.g until the mouse button is released as part of a click
action).

--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Sep 16 '06 #4

P: n/a
Of course the desired behaviour can easily be achieved by javascript
constructions like changing the css-classname of the link at onload or
onunload of the page in question. In a way, this is even the better
solution. But it is more complex, and it requires javascript to be
activated.

Dominik

Sep 17 '06 #5

P: n/a
Harlan Messinger wrote:
>focus?
AFAIK any element is out of focus if you click on any other element on
the entire screen. So I don't think that's it.

Dominik

Sep 17 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.