Help - Search - Members - Calendar
Full Version: Problems with active/visited link colors
HTMLHelp Forums > Web Authoring > General Web Design
49jet
Help, I'm having problems controlling the colors of my active and visited links. I've used the normal code:

<body link="blue" alink="blue" vlink="violet">

it works on the normal hyperlinks but it has no effect when I am opening a new window with the following:

<a onclick="window.open('../../case1chart2.gif','linkname','height=250, width=410,scrollbars=no')" href="java script:void(0)"><u>enquiries</u></a>

The links are black no matter what I try to do.

Here is the offending page: (there are others with the same problem)

http://www.customercsi.com/case1.html

Thanks, David
geoffmerritt
Using CSS will solve the problem, you will need to use;

<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>

Here is a link with further help. http://www.echoecho.com/csslinks.htm
Darin McGrew
Put a real URL in the href attribute, like this:
CODE
<a onclick="window.open('../../case1chart2.gif','linkname','height=250, width=410,scrollbars=no'); return false" href="../../case1chart2.gif">
pandy
QUOTE(49jet @ Apr 17 2009, 06:21 AM) *

<body link="blue" alink="blue" vlink="violet">

it works on the normal hyperlinks but it has no effect when I am opening a new window with the following:

<a onclick="window.open('../../case1chart2.gif','linkname','height=250, width=410,scrollbars=no')" href="java script:void(0)"><u>enquiries</u></a>



So how don you put links in a GIF? The pup-ups I tried at your page contain just an image, as in your example above. And they have no links.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.