473,574 Members | 2,982 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 59867
On 14 Feb 2005 10:47:53 -0800, Pet-lover <Sh*******@gmai l.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_********@hot mail.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.*********@ex ample.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.*********@ex ample.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
3715
by: Cezar | last post by:
Hello. How can simple emulating in IE this class ? ..example:hover{ border: 1px solid #696969; } Greets, Cezar.
1
5412
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 correctly but it disappears if another hover is triggered. Any thoughts? Thanks,Jonny <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
2
9152
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 in the status bar 'Symantec Corporation' whenever anyone mouses over (onMouseOver) my image or link OR when one clicks while holding the left mouse...
0
5817
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. click away, data presented in table cell. 2.0 The table cells have hover highlighting.
13
12504
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 checkbox in that row is selected? Poko
2
2845
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
19542
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 with another color. Also created a class called "Selected". You can only select a row at a time. My problem is, if a row is preselected, when...
9
3221
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 even if display is set to block. it only look changes when there is a href there. but if i have a href there then when i click it will load the page,...
2
1954
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 the user clicks on the tab (any tab), the browser goes back to the top of the page (I'm assuming it's refreshing, I'm not sure). I'm attaching the JS...
0
7805
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8237
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7817
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8098
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6454
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5622
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5301
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3752
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1060
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.