473,320 Members | 2,112 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,320 software developers and data experts.

How Do I prevent a:hover from affecting <a name=...>

I know I could do it by restricting hover to a class of links
(a:hover.actuallyalink) but is there a way that doesn't require me to
change every link in every existing html document?
Jul 23 '05 #1
5 2908
In comp.infosystems.www.authoring.html Ben Sharvy said:
[ How Do I prevent a:hover from affecting <a name=...>]
I know I could do it by restricting hover to a class of links
(a:hover.actuallyalink) but is there a way that doesn't require me to
change every link in every existing html document?


a:link:hover
--
the facts and opinions expressed by brucies
l i t t l e v o i c e s
are not necessarily the same as those held by brucie.
Jul 23 '05 #2
Ben Sharvy wrote:
How Do I prevent a:hover from affecting <a name=...>
I know I could do it by restricting hover to a class of
links (a:hover.actuallyalink) but is there a way that a.blah:hover, in fact
doesn't require me to change every link in every existing
html document?

override the css properties only for your <a id="foo> like this:
a#foo:hover { settings you have for unhovered links }
AFAIK only works for id=foo, not name=foo, though.
Jul 23 '05 #3
On Tue, 9 Nov 2004 07:13:38 +1000, brucie <sh**@usenetshit.info> wrote:
In comp.infosystems.www.authoring.html Ben Sharvy said:
[ How Do I prevent a:hover from affecting <a name=...>]
I know I could do it by restricting hover to a class of links
(a:hover.actuallyalink) but is there a way that doesn't require me to
change every link in every existing html document?


a:link:hover


Or:

a[href]:hover

Both selectors run foul of MSIE's lack of support for these construct.
Maybe it is best to just avoid using <a name=...>, and stick to using ID
attributes on other elements. You can't use those IDs for in-page links in
Netscape 4, all other browsers in current use support it.

--
Rijk van Geijtenbeek

The Web is a procrastination apparatus:
It can absorb as much time as is required to ensure that you
won't get any real work done. - J.Nielsen
Jul 23 '05 #4
DU
Ben Sharvy wrote:
I know I could do it by restricting hover to a class of links
(a:hover.actuallyalink) but is there a way that doesn't require me to
change every link in every existing html document?

a:not([name]):hover { ...your declarations ...} /* CSS3 selector */

will only work in Mozilla 1.6 and higher.

DU
--
The site said to use Internet Explorer 5 or better... so I switched to
Mozilla 1.7.5 :)
Jul 23 '05 #5
Els
DU wrote:
Ben Sharvy wrote:
I know I could do it by restricting hover to a class of
links (a:hover.actuallyalink) but is there a way that
doesn't require me to change every link in every existing
html document?


a:not([name]):hover { ...your declarations ...} /* CSS3
selector */

will only work in Mozilla 1.6 and higher.


I wonder if the OP has been waiting for that answer for the past
four months... ;-)

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Eshrath | last post by:
Hi, What I am trying to do: ======================= I need to form a table in html using the xsl but the table that is formed is quite long and cannot be viewed in our application. So we are...
2
by: Donald Firesmith | last post by:
I am having trouble having Google Adsense code stored in XSL converted properly into HTML. The <> unfortunately become &lt; and &gt; and then no longer work. XSL code is: <script...
4
by: higabe | last post by:
Three questions 1) I have a string function that works perfectly but according to W3C.org web site is syntactically flawed because it contains the characters </ in sequence. So how am I...
5
by: Lilou | last post by:
Hello this page works : http://lilou.leuwen.chez.tiscali.fr/testlilou.htm the source : .... a.link:hover div.test2 {display : block; position: absolute; z-index: 1000;
5
by: toylet | last post by:
Attached is some css codes for a website. It has 3 parts: top-bar, side-bar (on the left) and main-body. The top-bar has a mouseover menu called top-menu implemented via ul:hover. When the mouse...
15
by: Robert Mark Bram | last post by:
Hi All! Problem I began with: Netscape/Opera supports hover for different elements, IE only supports hover for <a> and I want to use hover for <td class="menu"> I then found a fix using some...
11
by: Les Paul | last post by:
I'm trying to design an HTML page that can edit itself. In essence, it's just like a Wiki page, but my own very simple version. It's a page full of plain old HTML content, and then at the bottom,...
7
by: Matt | last post by:
Is there a way to increase the amount of time a hyperlink title displays or show the desired text using javascript? <a title="This is the title text displayed on hover.">Displayed Text</a> ...
1
by: Samuel Murray | last post by:
G'day everyone Do you know if it is possible to use CSS to prevent HTML that is encapsulated by a certain tag pair from being parsed? I mean, I would like this: <p><a...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

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.