469,330 Members | 1,329 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,330 developers. It's quick & easy.

is there any css like A.hover but for onclick

I would like to change the style of one element in onclick
event of other element but I would like to use just CSS not
JScript is there any way? with A.Hover I can change the style but
I need to chnage in Onlick.http://www.webfreeguide.com

Jul 21 '05 #1
6 59517
On 14 Feb 2005 10:47:53 -0800, Pet-lover <Sh*******@gmail.com> wrote:
I would like to change the style of one element in onclick
event of other element but I would like to use just CSS not
JScript is there any way? with A.Hover I can change the style but
I need to chnage in Onlick.http://www.webfreeguide.com


There is:

a
a:link
a:focus
a:hover
a:visited
a:active

I guess you could use the last one for `'onclick simulation'.

--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'
Jul 21 '05 #2
On Mon, 14 Feb 2005 19:57:13 +0100, "Barbara de Zoete"
<b_********@hotmail.com> wrote:
There is:

a
a:link
a:focus
a:hover
a:visited
a:active

I guess you could use the last one for `'onclick simulation'.


That would be my guess, too.
Jul 21 '05 #3
Barbara de Zoete wrote:
a
a:link
a:focus
a:hover
a:visited
a:active


Methinks that order is incorrect. Should be:

a.link
a.visited
a.focus
a.hover
a.active

"Las Vegas Has Animals" LVHA (with focus tossed into the middle <g>,
and probably not needed in most cases)

--
-bts
-This space intentionally left blank.
Jul 21 '05 #4
On Mon, 14 Feb 2005 15:11:19 -0500, Beauregard T. Shagnasty
<a.*********@example.invalid> wrote:
Barbara de Zoete wrote:
a
a:link
a:focus
a:hover
a:visited
a:active


Methinks that order is incorrect. Should be:

a.link
a.visited
a.focus
a.hover
a.active


:-D Had I been trying to give those in a specific order, you would have
been absolutely right. Though one could start a debate about the
focus-hover order.
(Why do you use .. btw, and not :: ?)

But the case is, I just typed them of the top of my head in no particular
order, although the starting with a plain 'a' with no pseudo makes it seem
otherwise.
--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'
Jul 21 '05 #5
On Mon, 14 Feb 2005 15:11:19 -0500, Beauregard T. Shagnasty
<a.*********@example.invalid> wrote:
with focus tossed into the middle <g>, and probably not needed in most
cases)


Almost missed this. I have a habit of tabbing my way through bundles of
links instead of using mouse gestures for navigating. With a specific
style set for a:focus, I know, I can see where my cursor's at. I kind of
like that. Is there an other way to achieve a signal 'has focus' without
using a:focus?

--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'
Jul 21 '05 #6
Barbara de Zoete wrote:
:-D Had I been trying to give those in a specific order, you would
have been absolutely right.
Thenk yew... ;-)
Though one could start a debate about the focus-hover order. (Why
do you use .. btw, and not :: ?)
.. or : ? I suspect laziness whist typing my reply. I do have : in my
stylesheets.
But the case is, I just typed them of the top of my head in no
particular order, although the starting with a plain 'a' with no
pseudo makes it seem otherwise.


Ayup. (Northeast US slang for "yes')

--
-bts
-This space intentionally left blank.
Jul 21 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Cezar | last post: by
1 post views Thread by Jon W | last post: by
2 posts views Thread by Gabriel Lozano-Morán | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Purva khokhar | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.