I have a frameset top, left, and main. In the left frame is the navigation made up of text links (css), what i want to happen is when a user clicks on one of those links i want it to stay a certain colour until they click on another link.
a:active is not good enough as when you click anywhere on the page the link colour turns off.
<script>
function ChangeColour(ThisLink)
{
var link1 = document.getElementById("Link1");
var link2 = document.getElementById("Link2");
var link3 = document.getElementById("Link3");
var link4 = document.getElementById("Link4");
var Curlink = document.getElementById(ThisLink.id);
i tried it out but dosen;t seem to give the results i want.
At the moment all the text links are white and when you roll over them they turn blue, when the user clicks on one of those links i want them to stay blue until the user clicks on another link where that stays blue and the other link turns back to white
True - you are supposed to change the colours I used to be the colours you want. Green and red are just examples. You need to replace that with white and blue.
thanks for all your help..one problem still when you click on another link i want the previous link that was clicked to turn back to its default of white ?!?
Well when I made enabled the code (You didn't seem to be using it) it worked perfectly. The current link is red and all the others are white.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<LINK rel="stylesheet" media="screen" href="app_stylesheet.css" type="text/css">
<style>
a {background: Black; color:white}
</style>
<script>
function ChangeColour(ThisLink)
{
var link1 = document.getElementById("Link1");
var link2 = document.getElementById("Link2");
var link3 = document.getElementById("Link3");
var link4 = document.getElementById("Link4");
var link5 = document.getElementById("Link5");
var link6 = document.getElementById("Link6");
var link7 = document.getElementById("Link7");
var link8 = document.getElementById("Link8");
var Curlink = document.getElementById(ThisLink.id);
Bookmarks