Solved

VLINK Color - Changing

Posted on 1998-12-20
3
789 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

911 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now