Solved

VLINK Color - Changing

Posted on 1998-12-20
3
811 Views
Last Modified: 2012-08-13
My question is as follows:
I would like to know how to change the VLINK color of only one, out of a series of, hyperlinks.  The tricky part, at least i think, is that i would still like to change only the hyperlink clicked, reguardless if the links goto the same page.
EX:  Fun | Games | Sports
each one of those hyperlink to a bookmark on the same page.  Let's say the user clicks "Fun".  I would only like that link to change colors (VLINK) even though the others are on the same page.  Please help.
-Treason-
P.S - please forgive any spelling/grammer mistakes that i might have.
0
Comment
Question by:TrEaSoN
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
MasseyM earned 100 total points
ID: 1840884
You could use CSS.  It would work in IE 4.x and NS 4.x only.
<HEAD>
<STYLE>
fun  {
     visited: red;
     }
notsofun {
         visited:blue;
         }
<STLYE>
</HEAD>

<A HREF="yourfile.htm#fun" CLASS="fun">Fun</A>
<A HREF="yourfile.htm#notsofun" CLASS="NotSoFun">Not So Fun</A>

this will make the Fun link turn red after a click and make Not So Fun turn blue after it is clicked
0
 

Author Comment

by:TrEaSoN
ID: 1840885
Okay, i get what your saying, but it doesn't seem to be working.  Please tell me if I am doing something wrong (the example is further down).
------------------

<html>
<head>
<title>Activities</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<style type="text/css">
<!--
a { text-decoration: none }
a:hover { color: "#FF0000" }

L1 {
visited: red;
}
-->
</style>
</head>

<body BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF">
<a href="activities2.htm#Age" CLASS="L1">For group age information please click here</a>
------------------
The link does not change to red, or do anything other than the default VLINK.
0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1840886
sorry.  The CLASS doesn't work in NS.  I will see if I can come up with another way..
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question