Jul 26, 2008

Fade Link Color

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..

free web hosting

Fade Link Color

gotcha41
hi, how do you make the linkcolor fade to another color when pointing your cursor to the link? It's a rather short description of my question, but i hope it's clear cool.gif .
More tips and tricks are welcome...

Reply

krap
Put this is <head>:
CODE

<style type="text/css">
A:link {text-decoration: none}
A:visited {text-decoration: none}
A:active {text-decoration: none}
A:hover {text-decoration: underline; color: red;}
</style>

Change red to whatever colour you want it to be.
Find more:
http://www.google.com/search?hl=en&q=hover+link+css

Reply

bjrn
The order you put them in is important though. So remember, when if comes to pseudo classes: LoVe HAte (link, visited, hover, active) biggrin.gif

Reply

cragllo
The order is not importsnt is it? ive never had any problems...

Reply

bjrn
I remember having problems with it some time ago. It might be mainly affecting IE, but I'm not sure (and not in the mood for testing), but quick google seems to indicate it's for (mainly) all browsers.
The point is that if you order it, for instance, like so:
link
active
hover
visited
then visited would override hover, and so when you would hover over a visited link you wouldn't see the hover style, because the visited style is declared later than the hover style and therefor overrides it.


I'm not sure I'm explaining properly, so I'll expand. I'll use a shorthand form (L means ":link" and so on).

When you have a link it will fall under just L and not under A, H or V. When the visitor has clicked on it, it becomes visited and falls under both L and V.
CSS works so that the last style declaration overrides older ones, so if you have
p { background-color:#fff; border:1px solid #f0f;}
p { background-color:#000; }
The background for 'p' would be #000 (black) with a #f0f (magenta) border, because last rule the parser encountered overrides any earlier rules. Same thing with pseudo classes like hover.

So, when the visitor has visited a link and then hovers over it, the link falls into L V and H! Oh dear! So the parser checks the styles for a:L, a:V and a:H and applies them in the order they are typed in the stylesheet.

At least I'm guessing that is what is/could be causing problems sometimes.



Of course if you don't want visited links to have hover styles then the appropriate order would be to have H before V. And I'm guessing you could (probably doesn't work in IE, but you never know) do something like:
a:link{...}
a:hover{...}
a:active{...}
a:visited{...}
a:visted:hover{...}
to get special styling for visited links you're hovering over.

 

 

 


Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : fade, link, color

  1. Need Help With My Database [resolved]
    retrive data as a link (6)
  2. Dreamweaver Cs3: How To Link Content To Layers/apdivs
    (5)
    Hi all! I've been searching the internet like crazy but just can't find any answers to
    my problem. I want to make it so that my navigation buttons links content to be loaded inside a
    smaller layer/apDiv or perhaps something i've yet to discover. I just can't for my life
    understand how to do this nor what tools and options to use. I am using Dreamweaver CS3 in design
    mode and have no clue how to hard code in html, CSS etc.. Here's a picture of what i want to
    do. I really hope someone can help me or perhaps atleast point me in the right direction....
  3. Suitable Forum
    Link Exhanges (0)
    I am looking for the suitable forum to post a thread regarding link exchanges. Please reply to
    arnett.carroll@gmail.com. Thanks.....
  4. Image Hosting Link On My Website?
    need help (2)
    Please look at the imagefilez.com box at the top part of most of the pages at trap 17. I'm
    looking to place any kind of image hosting box similar to that one on my own website. The hosting
    service can be any website but I'm just trying to find a way that I can have my own image
    hosting box on the site. I don't care if it does the hosting through another site. Please, any
    help to create a image hosting box on my website would be greatly appreciated. /tongue.gif"
    style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" />....
  5. Broken Link!
    (4)
    Just so you guys know, there is a broken link at the top of alot of your pages for computing web
    hosting. It goes to a site that doesn't exist. And the graphic for Imagefilez.com is also
    broke. Wasn't sure where to post, so here you are!....
  6. Link Between Depression And Learning Disabilities?
    Can depression cause learning disabilities? Do learning disabilities (3)
    I have been diagnosed with clinical depression. I have found at times that it is hard to
    concentrate (more often than not). I also have a hard time remembering things. I know that these
    are typical symptoms of depression but am wondering if depression itself can be considered a
    learning disability due to it's symptoms and side effects. I have done a little of research on
    the subject and see many references to people with learning disabilities developing depression
    because of having learning disabilities. Does anyone know of a good article, or maybe a website
    with....
  7. I Made The Color Guard.
    (7)
    So today we held auditions for the high school's color guard. For those of you who don't
    know what that is, it's the people who twirl flags at the football games. It's a lot of
    fun. well I thought I would just let you know. Hahaha.....
  8. Free Web Hosting: (legend Link) [screened] [approved]
    Free Website: <legionoftwilight.trap17.com> (2)
    To generate an application for free web hosting please click here: Free Web Hosting
    Request Form I would like to request free web hosting from Trap17. Please find my application
    below. Your Registered Domain Name or Desired Trap17 Subdomain Name:
    legionoftwilight.trap17.com Account Username: aaronz Introduction: I love
    computers, video games, astronomy, and web design. Anything having to do with science or technology
    basically. Email Address: astronaut707@aol.com Age: 15 Country
    Where I ....
  9. Joomla 1.5.2 Broken Link?
    Add New User won't work (3)
    So I wiped the whole slate clean and noticed they've got 1.5.2 now, so I installed it. When I
    went to add another admin under the user manager menu, it did nothing when I clicked on "NEW" in the
    upper right. This link is broken or something else is wrong here. I need to be able to add other
    admins to get this thing off and running... Someone help me please... Admin??? Edit: I've come
    to the conclusion that the software that's on the server is bad. Could you, Shree, or someone
    over at Xisto please download a new copy of 1.5.2 to replace the one that's the....
  10. Flash Problem
    sometimes the buttons will load the wrong link. (9)
    Its weird but sometimes when you hit the forums or roster button on my flash banner it will load:
    www.childrenofconan.trap17.com/index.html instead of what its suppost to. It works fine, but if you
    mess around and click the buttons for a little bit you will notice this happening. This is a problem
    because people visiting the site will sometimes click the button once and be like oh I guess the
    link is broken and never come back, if anyone has a solution to what could be the problem it would
    be awesome. This is one of my first custom flash banners and im just confused what....
  11. Afraid That This Love Will Fade Away
    (0)
    AFRAID THAT THIS LOVE WILL FADE AWAY I can't hide that i still love you i know i've made
    you hurt i hope that with this last poem of mine you will realize that i regret the bad things i did
    to you The love i have still shines like light my heart of pain still beats your name open you
    eyes, open your mind i beg you to stay, before this love will fade away.. I am afraid, i know
    i've hurt you look deep inside your heart i believe i'm there to stay say that you'll be
    back today BEFORE THIS LOVE WILL FADE AWAY.. That's one of my poems that I have w....
  12. Text-link-ads
    (0)
    I wanted to know your experience? I just started using the program and so far found it to be a god
    send! I am rolling the dough with their affiliate program. I know bloggers like John Chow and
    celebrity copy cat John Cow make lots of cash using it hence I tried it out. I would personally say,
    so far so good. My campaign of promoting the link worked well. What are your thoughts?....
  13. Link Image Css Bug In Firefox
    Can anyone help me? (7)
    I have a problem in a site I am creating. I have styled my post content links in the following
    way. CODE #post-content a {     background-color: #bf6f3c;     color: #fff;
        padding: 2px 2px 1px 2px;     border-bottom: 1px solid #7f4926; } #post-content
    a:hover {     color: #f5fac7; } And when I insert an link image like so: There
    seems to be an extra border inherited from my #post-content a style. I have attached the screenshot
    to show the problem. This was how my link image should look like: CODE #post-content a img { ....
  14. American Troops At Their Worst. Videos Of What Our Soldiers Who Represent The Usa Are Doing In Other Countries.
    WARNING, GRAPHIC CONTENT (in a link) (10)
    Our American Soldiers are supposed to be the people protecting those who can't protect
    themselves, insuring freedom and helping other countries and trying to work for peace. As such in my
    opinion they have a responsibility to become role models. Obviously some people in our armed forces
    are not up to that role. This article shows 5 different videos of things that our troops have been
    filmed doing (most of them filmed themselves and thought it was amusing) The article also makes a
    good point when it says that there is a proven link between the abuse and torture of ....
  15. Server Status Link Doesn't Work
    (1)
    Hey, I tried going to the xisto menu on the top right of the forums and the server/network status
    link doesnt work, it leads to: http://www.xisto.com/helpdesk/index.php?cmd=status I get, The
    requested URL /helpdesk/index.php was not found on this server. Is this a out-dated link?....
  16. Cod4 Color Guide
    (1)
    Okay, i see a lot of people trying to figure out how to use colors and blah blah. Well here's
    the guide made by me to teach you thanks. ^1 - RED ^2 - GREEN ^3 - YELLOW ^4 - BLUE ^5 - CYAN ^6 -
    PINK ^7 - WHITE ^8 - DEFAULT MAP COLOR ^9 - GREY OR DEFAULT MAP COLOR ^0 - BLACK....
  17. Healing With Color
    (10)
    So what is "healing with color" and how does it work? There are many ways to use color to help
    balance the body ( mind/emotions/soul) out. All colors operate on their own wavelength and
    everyone reacts to these in their own way. It has been shown that color does affect not just the
    senses but the body itself. There are many ways to heal with color. Let's look at some examples:
    There is healing with colored light ( subjecting yourself for periods of time under certain hues).
    Healing with color based meditations ( focusing on a color in your minds eye). Healing w....
  18. Do You Dream In Black & White Or Color?
    (27)
    Hellosies! I 'm one of those people who usually dream in VIVID colors ( more like
    technicolor sometimes lol!) and was surprised to find that some people dream only in black and
    white. So my question for ya'll is how many of you here dream in color? How many here dream in
    black and white? Okay so how many of you are super talented and dream in both versions? ....
  19. Is Link Right Handed Or Left Handed
    (7)
    In twilight princess Link is right handed in the Wii version but left handed in gamecube version so
    has Link really become normal or is it just a phase, also all of the TP screenshots show link right
    handed some times and left handed other and i got confused a lot anyway this is important so post
    now....
  20. Link-building Services In 3 Languages
    Global Vibration Inc. is now the first SEO agency offering link-buildi (1)
    Global Vibration Inc. is now the first SEO agency offering link-building services in 3 languages:
    English, Spanish and French: http://www.mseo.com/link_building_services.html Our link-building
    solutions are offered through temporary staffing services (hire 1 of our technicians for 1 month/160
    hours). SEO agencies, advertising agencies and web marketing companies are invited to consider
    acting as our reseller and receive a straight 20% commission. After visiting our multilingual
    link-building services, you may sign up as a reseller by clicking on the following link: ht....
  21. Toolbar Not Working (adobe Dreamweaver)
    I dont know why but it doesnt link. (7)
    See, my toolbar is made up of 8 buttons. They are: Home | Lessons | Theory | Links Videos| Extras
    | Forums | Feedback To make my website, I use adobe Dreamweaver CS3. if youve ever used it, youll
    know that if you want to make an image a link, you need to click it and fill in the link box at the
    bottom and then make the border 0. The annoying thing is, lets say I type in in the link box for
    Home "index.html". Then, I take a look at lessons. Suddenly, that box is filled with index.html
    too! So, I quickly change that box to lessons.html. But then (this is where the ....
  22. The Link Building Nightmare…
    (3)
    Don’t you ever wonder how ironic it is that we are drifting towards Web 2.0 and yet it’s becoming
    harder to get great links for search engine optimization? Nowadays more and more webmasters are
    barring search engines from seeing or following external links. Techniques used include: using a
    rel=”nofollow” on external links, forwarding the links through JavaScript, barring pages with
    external links in robots.txt, and using 302 (temporary) redirects. Getting links from websites
    employing these techniques means that your link won’t count in your search engine o....
  23. A New Free Game Mo Siang Online, Who Know The Link?
    who know the link? (4)
    /ohmy.gif" style="vertical-align:middle" emoid=":o" border="0" alt="ohmy.gif" /> i heard from my
    friend is great and free and being close beta, who know the download link?....
  24. Microsoft Launches Internet Explorer 7!
    Download link available here (25)
    Well, Microsoft has just released Windows Internet Explorer 7 (note that MSIE is no more, it is
    now WIE /wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> ). What
    are your opinions about the new IE, if you have tried it? Is it better than Opera or Firefox?
    Personally, I think it is better than MSIE 6, and pretty much the same thing as FX, but I still miss
    features that are integrated into Opera, such as a mail client, IRC client and mouse gestures. There
    is also a major change when rendering web sites: The text is anti-aliased. Personall....
  25. Trap17 Link Exchange Script Introduced
    (26)
    Hi, We have introduced a link Exchange Script at Trap17. http://www.addlivelinks.com/ The
    categories are yet to be setup. It will be done as we receive link requests. Thanks. -OpaQue....
  26. How To Use A Link To Call Function In Php?
    (8)
    The title says it all, really. How do you call a function using in PHP? I'm doing a project
    and I stumbled upon this problem. I don't want to use query string in the href part like
    since that would mess up the other part of my code. Can anyone pleae help me? I've pasted the
    code below. /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> Thanksh.
    CODE <?php   function display($x){ //coding goes here.   } ?>
    <html> <body> <p align="center"> <a href="what g....
  27. [photoshop]grunge Abstract Sig ~ Samma
    Includes Multi Color Method (9)
    Im not sure if this has been done before... I havent seen a grunge abstract tut before, but anyways
    here it is /tongue.gif' border='0' style='vertical-align:middle' alt='tongue.gif' /> Outcome:
    1. Fill the canvas with black, and brush with white using a grunge brush. After you have
    completely filled the whole layer with the grunge brush, go to Image > Adjustments > Auto Contrast,
    then go to Filter > Sharpen > Sharpen Edges, then finaly go to Edit > Fade Sharpen Edges and do an
    opacity of 50%. Make a new layer. Repeat Step 1. another 2 times using different gru....
  28. Changing Background Color In Php
    usefull for templating. (5)
    Tutorial on how to change background color with PHP I will be descibing to similiar ways that
    you can change the background color of your website with php and leave it at that till the user
    changes it again. We are going to do this with CSS. You can either have your cSS info on your page
    or in a spereate document. The first thing youll have to do is decide if your going for the linked
    stylesheet or directly on your page. IF you link it you'll need to have this code in you
    tags. CODE <style type="text/css"> <?php include ("st....
  29. Table/cell Link?
    (10)
    Well, I actually don't know what it is. But I need a code where you can click everywhere on the
    table, not only on the text/image.....
  30. ZELDA and LINK
    (30)
    Ok here's something that bothers me. There's lots of people that say that zelda and link
    have some kind of romantic thing going on. I always imagined link just being her hero and that their
    relationship was strictly platonic. I mean, i always saw link as a completely pure person that
    doens't really have romantic feelings but only want to save her because it's the valient
    thing to do. .. also he's the legendary hero. .. it's in his blood. Someone argued that they
    do have a relationship because she kissed him in part two on the cheek when he saved h....

    1. Looking for fade, link, color

Searching Video's for fade, link, color
Similar
Need Help
With My
Database
[resolved] -
retrive data
as a link
Dreamweaver
Cs3: How To
Link Content
To
Layers/apdiv
s
Suitable
Forum - Link
Exhanges
Image
Hosting Link
On My
Website? -
need help
Broken
Link!
Link Between
Depression
And Learning
Disabilities
? - Can
depression
cause
learning
disabilities
? Do
learning
disabilities
I Made The
Color Guard.
Free Web
Hosting:
(legend
Link)
[screened]
[approved] -
Free
Website:
<legionof
twilight.tra
p17.com>
Joomla 1.5.2
Broken Link?
- Add New
User
won't
work
Flash
Problem -
sometimes
the buttons
will load
the wrong
link.
Afraid That
This Love
Will Fade
Away
Text-link-ad
s
Link Image
Css Bug In
Firefox -
Can anyone
help me?
American
Troops At
Their Worst.
Videos Of
What Our
Soldiers Who
Represent
The Usa Are
Doing In
Other
Countries. -
WARNING,
GRAPHIC
CONTENT (in
a link)
Server
Status Link
Doesn't
Work
Cod4 Color
Guide
Healing With
Color
Do You Dream
In Black
& White
Or Color?
Is Link
Right Handed
Or Left
Handed
Link-buildin
g Services
In 3
Languages -
Global
Vibration
Inc. is now
the first
SEO agency
offering
link-buildi
Toolbar Not
Working
(adobe
Dreamweaver)
- I dont
know why but
it doesnt
link.
The Link
Building
Nightmare…
A New Free
Game Mo
Siang
Online, Who
Know The
Link? - who
know the
link?
Microsoft
Launches
Internet
Explorer
7! -
Download
link
available
here
Trap17 Link
Exchange
Script
Introduced
How To Use A
Link To Call
Function In
Php?
[photoshop]g
runge
Abstract Sig
~ Samma -
Includes
Multi Color
Method
Changing
Background
Color In Php
- usefull
for
templating.
Table/cell
Link?
ZELDA and
LINK
advertisement



Fade Link Color



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE