473,378 Members | 1,384 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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 59850
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Cezar | last post by:
Hello. How can simple emulating in IE this class ? ..example:hover{ border: 1px solid #696969; } Greets, Cezar.
1
by: Jon W | last post by:
This is a small table with hover on the table cells. The first cell is setup to switch from div element to input element by use of display:block/none. In IE, onclick the input element is displayed...
2
by: Kevin Lyons | last post by:
Hello, Can anyone assist me with what I am trying to do with the following code (six different scenarios to try to make the functionality work correctly)? I want to always (and ONLY) display...
0
by: Jon W | last post by:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"> <html> <head> <title>rolly</title> <!-- The desired performance for this gem would be to: 1. click on table cells 2. edit in INPUT 3....
13
by: Gary | last post by:
I have a table with a form consisting of several checkboxes and I'm wondering if its possible to change the table row background color on mouseover or hover and make it stay that color when the...
2
by: Gabriel Lozano-Morán | last post by:
Is there a reason why this does NOT work in IE6.0 ? <html> <head> <style type="text/css"> a { text-decoration: none; } a:hover
4
by: Amy | last post by:
I need some help. I have this table with alternate row colors. Class gray and class white. I have javascript that do highlight when mouseover row ... and onclick to select row and highlight it...
9
by: monomaniac21 | last post by:
hi all i want to use hyperlinks to 'load' content by changing the display of div tags. the problem i have is that unless i specify a href the anchor does not change the mouse pointer on hover...
2
by: stevemtno | last post by:
I've got a problem with a web page I'm working on. I have 4 modules - one of them has 2 tabs, two of them have 4 tabs. When the user clicks on the tabs, the content below them changes. However, when...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.