Jump to content


Photo

Links color


  • Please log in to reply
1 reply to this topic

#1 takeiteasy

takeiteasy
  • Members
  • PipPipPip
  • Advanced Member
  • 32 posts

Posted 06 July 2006 - 05:46 AM

hi all,
Just wanted to ask if there's any code which will auto restore back the settings of the link color whenever user opens the page..
Like for example, my current code is
a:link 	{text-decoration: none; color: #ffffff; cursor:crosshair}
a:visited {text-decoration: none; color: #0000CC; cursor:crosshair}
a:active	{text-decoration: underline; color: #444444; cursor:crosshair}
a:hover 	{text-decoration: underline; color: #6699FF; cursor:crosshair}
The very first time i open the page, the color is #ffffff, after i visited the links, the visited links become #0000CC. Then the second time i visit the page, the links are still in #0000CC color. But what i wanted is the links to be back to #ffffff color everytime i visit the page again.
Has this got to do with the codes?
or because of my computer? it has the windows function which it will save the datas which i have entered before.



#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 06 July 2006 - 09:27 AM

Its becuase of this:
a:visited {text-decoration: none; color: #0000CC; cursor:crosshair}
When when ever you click a link the browser records this, then when the browser is creating the link it checks whether you have clicked that link before, it you have it'll apply your hover class. It'll do that everytime you visit the link again until you clear you cache/history.

The optoin is to leave as it is or change 0000CC to FFFFFF




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users