The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Problems with active/visited link colors
49jet
post Apr 16 2009, 11:21 PM
Post #1





Group: Members
Posts: 1
Joined: 16-April 09
Member No.: 8,354



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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
geoffmerritt
post Apr 16 2009, 11:46 PM
Post #2


Member
***

Group: Members
Posts: 66
Joined: 23-December 08
From: Adelaide
Member No.: 7,394



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

This post has been edited by geoffmerritt: Apr 16 2009, 11:47 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Apr 17 2009, 12:54 AM
Post #3


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



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">
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Apr 17 2009, 07:13 AM
Post #4


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th April 2024 - 05:34 AM