Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Mouse-over code - I want to add

Reply
Thread Tools

Mouse-over code - I want to add

 
 
...D.
Guest
Posts: n/a
 
      05-01-2005
<style>
A:link {text-decoration: none; text-decoration:underline; color:#0000FF; }
A:visited {text-decoration: none; text-decoration:underline;
color:#0000FF; }
A:hover {text-decoration: text-decoration:underline; color:#FF0000}
</style>

What function I'd like to add or this, or just re-do the whole thing, is
that when the mouse-over highlights the linking text, and then that text
link is then clicked - I'd like it to stay the same mouse-over color (or
change to another color) and that color stay in place up until another
mouse-over highlighted text link is clicked on.

Anyone know how to implement this?

Thanks.

...D.
 
Reply With Quote
 
 
 
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      05-01-2005
....D. wrote:
> <style>
> A:link {text-decoration: none; text-decoration:underline;
> color:#0000FF; }
> A:visited {text-decoration: none; text-decoration:underline;
> color:#0000FF; }
> A:hover {text-decoration: text-decoration:underline; color:#FF0000}
> </style>
>
> What function I'd like to add or this, or just re-do the whole
> thing, is that when the mouse-over highlights the linking text, and
> then that text link is then clicked - I'd like it to stay the same
> mouse-over color (or change to another color) and that color stay
> in place up until another mouse-over highlighted text link is
> clicked on.


mouse-over = hover

Are you saying you want a link to change its visited color, but only
until another link is visited? If so, that is not very practical.
Visited links should be a different color than unvisited (or hovered)
links.

Visitors expect this - visited links to "remain" visited.

--
-bts
-This space intentionally left blank.
 
Reply With Quote
 
 
 
 
Mark Parnell
Guest
Posts: n/a
 
      05-01-2005
Previously in alt.html, "...D." <d@no_usenet_email..org> said:

> What function I'd like to add or this, or just re-do the whole thing, is
> that when the mouse-over highlights the linking text, and then that text
> link is then clicked - I'd like it to stay the same mouse-over color (or
> change to another color) and that color stay in place up until another
> mouse-over highlighted text link is clicked on.


Not entirely sure what it is you're asking, but try setting the a:active
to the same as a:hover (or whatever other colour you want it to be).
Exact behaviour in this situation may vary between browsers - e.g. some
will only use the :active colour while the mouse button is actually
being pressed down. Setting a:focus to the same may also help.

--
Mark Parnell
http://www.clarkecomputers.com.au
alt.html FAQ :: http://html-faq.com/
 
Reply With Quote
 
...D.
Guest
Posts: n/a
 
      05-02-2005
>...D. wrote:
>> <style>
>> A:link {text-decoration: none; text-decoration:underline;
>> color:#0000FF; }
>> A:visited {text-decoration: none; text-decoration:underline;
>> color:#0000FF; }
>> A:hover {text-decoration: text-decoration:underline; color:#FF0000}
>> </style>
>>
>> What function I'd like to add or this, or just re-do the whole
>> thing, is that when the mouse-over highlights the linking text, and
>> then that text link is then clicked - I'd like it to stay the same
>> mouse-over color (or change to another color) and that color stay
>> in place up until another mouse-over highlighted text link is
>> clicked on.


"Beauregard T. Shagnasty" <> wrote:
>mouse-over = hover
>
>Are you saying you want a link to change its visited color, but only
>until another link is visited? If so, that is not very practical.
>Visited links should be a different color than unvisited (or hovered)
>links.
>Visitors expect this - visited links to "remain" visited.


Yes I know. But I want to use it anyway for a certain circumstance. So
thanks I will give it a try.

...D.
 
Reply With Quote
 
...D.
Guest
Posts: n/a
 
      05-02-2005
>"...D." <d@no_usenet_email..org> said:
>> What function I'd like to add or this, or just re-do the whole thing, is
>> that when the mouse-over highlights the linking text, and then that text
>> link is then clicked - I'd like it to stay the same mouse-over color (or
>> change to another color) and that color stay in place up until another
>> mouse-over highlighted text link is clicked on.


Mark Parnell <> wrote:

>Not entirely sure what it is you're asking, but try setting the a:active
>to the same as a:hover (or whatever other colour you want it to be).
>Exact behaviour in this situation may vary between browsers - e.g. some
>will only use the :active colour while the mouse button is actually
>being pressed down. Setting a:focus to the same may also help.


Yes thanks. I've tried the a:active. Doesn't want to stay. THanks for the
other suggestion.

...D.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
i want to add a timeout to my code maehhheeyy Python 5 05-02-2008 06:49 PM
Code Monkey want MCTS, Code Monkey take exam Zimri MCTS 0 04-03-2007 09:57 PM
Code Monkey want MCTS, Code Monkey take exam Zimri Microsoft Certification 0 04-03-2007 09:57 PM
How to add a button to Modify, delete or add a new record to this code karenmiddleol@yahoo.com ASP General 2 10-04-2005 11:55 AM
How to add a button to Modify, delete or add a new record to this code karenmiddleol@yahoo.com ASP General 0 10-01-2005 07:21 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57