?
Solved

VLINK Color - Changing

Posted on 1998-12-20
3
Medium Priority
?
817 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 200 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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 …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

741 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