Solved

VLINK Color - Changing

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article discusses how to create an extensible mechanism for linked drop downs.
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…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

758 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

22 Experts available now in Live!

Get 1:1 Help Now