Hyperlink question

G

Guest

I have several area with text that is "hyperlinked". The text is now blue.
I would like it to turn white when the mouse passes over it without clicking
it. Can I do this easily. It must be here somewhere....
 
M

MD Websunlimited

Hi Scott,

You'll need to utilize JavaScript to accomplish or you may wish to look at J-Bots Mouse Over Style behavior.
 
M

Murray

Which FP are you using? Do you find anything when you search in the Help
files for "pseudo-classes"?
 
T

Trevor L.

Scott said:
I have several area with text that is "hyperlinked". The text is now
blue. I would like it to turn white when the mouse passes over it
without clicking it. Can I do this easily. It must be here
somewhere....

If the link is a <a> tag (what else could it be, I ask myself ?), add a
style in the <head>
<style type="text/css">
a:hover {color:white}
</style>

Note of course that you need a non-white background - white on white is
rather illegible ;-))
 
J

John Malone

<style type="text/css">
a:hover {color:white;}
</style>

Will work better.... 8)
(I put in the ; )
Just incase they try copy paste
--
John Malone
==============
| Scott wrote:
| > I have several area with text that is "hyperlinked". The text is now
| > blue. I would like it to turn white when the mouse passes over it
| > without clicking it. Can I do this easily. It must be here
| > somewhere....
|
| If the link is a <a> tag (what else could it be, I ask myself ?), add a
| style in the <head>
| <style type="text/css">
| a:hover {color:white}
| </style>
|
| Note of course that you need a non-white background - white on white is
| rather illegible ;-))
| --
| Cheers,
| Trevor L.
| Website: http://tandcl.homemail.com.au
|
|
 
T

Trevor L.

John said:
<style type="text/css">
a:hover {color:white;}
</style>

Will work better.... 8)
(I put in the ; )
Just incase they try copy paste

Interesting, John

Sure, I usually add the ; but when there is only one paramater, I understand
it is not necesary - it is merely a separator between the elements in the
style. (Sorry if I am not using the correct syntax for: "elements in the
style". My meaning should be clear )

Does anyone disagree with the statement: "when there is only one paramater,
I understand it is not necesary " ?
 
J

John Malone

You might be right but when I use my CSS editor TOP Style it will insert it
if I don't.
So I figured it had to be there...
Wait... a test is what we need!
Made a quick page and tried it both ways.
Your way works too!

Learn something new every day 8)
--
John Malone
==============
| John Malone wrote:
| > <style type="text/css">
| > a:hover {color:white;}
| > </style>
| >
| > Will work better.... 8)
| > (I put in the ; )
| > Just incase they try copy paste
|
| Interesting, John
|
| Sure, I usually add the ; but when there is only one paramater, I
understand
| it is not necesary - it is merely a separator between the elements in the
| style. (Sorry if I am not using the correct syntax for: "elements in the
| style". My meaning should be clear )
|
| Does anyone disagree with the statement: "when there is only one
paramater,
| I understand it is not necesary " ?
| --
| Cheers,
| Trevor L.
| Website: http://tandcl.homemail.com.au
|
|
 
M

Murray

No - you are correct, but it's still bad practice to eliminate it. I have
found that a surprisingly large percentage of my one-style rules morph into
multiple-style rules over time, and the omitted semicolon is a bug waiting
to happen.... 8)
 
T

Trevor L.

Murray said:
What? That's not legal syntax....

From an amateur.
I wondered what you meant??

But now I see
body
{
a hover: text-color: white;
}

should be
body
{
a hover: color: white;
}

Andrew,
I always thought you were an expert.

But we all make mistakes ;-))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top