473,396 Members | 1,915 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

class - links/visited question

For our intranet - I've standardized on black for links (from input of
users) - no change for visited, etc...

However, on one page, I've been asked to make the normal blue for
non-visited/purple for visited to be instantiated.

I figured I could easily create a class for this - - - - BUT......(and I
know how to create a class) ----

I'm not sure how to create a class that will include A:LINK and
A:VISITED - - - can someone help and shed some light on this, please?
Jul 21 '05 #1
3 1568
Elmo Watson wrote on 03 mrt 2005 in
comp.infosystems.www.authoring.stylesheets:
For our intranet - I've standardized on black for links (from input of
users) - no change for visited, etc...

However, on one page, I've been asked to make the normal blue for
non-visited/purple for visited to be instantiated.

I figured I could easily create a class for this - - - - BUT......(and I
know how to create a class) ----

I'm not sure how to create a class that will include A:LINK and
A:VISITED - - - can someone help and shed some light on this, please?


I use something like this, depending on the background color/picture:

a {text-decoration:none;}

a.myClass1:link,a.myClass1:visited
{background-color:transparent;color:yellow;}
a.myClass1:hover {background-color:yellow;color:maroon;}
a.myClass2:link,a.myClass2:visited
{background-color:transparent;color:maroon;}
a.myClass2:hover {background-color:maroon;color:yellow;}
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 21 '05 #2
a.myClass1:link,a.myClass1:visited
{background-color:transparent;color:yellow;}
a.myClass1:hover {background-color:yellow;color:maroon;}
a.myClass2:link,a.myClass2:visited
{background-color:transparent;color:maroon;}
a.myClass2:hover {background-color:maroon;color:yellow;}


So - then, in my link, if I wanted the myClass2 version - I would just type
in class="myClass2" - right?
Jul 21 '05 #3
Elmo Watson wrote on 03 mrt 2005 in
comp.infosystems.www.authoring.stylesheets:
a.myClass1:link,a.myClass1:visited
{background-color:transparent;color:yellow;}
a.myClass1:hover {background-color:yellow;color:maroon;}
a.myClass2:link,a.myClass2:visited
{background-color:transparent;color:maroon;}
a.myClass2:hover {background-color:maroon;color:yellow;}


So - then, in my link, if I wanted the myClass2 version - I would just
type in class="myClass2" - right?


Try!
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Michael Klatt | last post by:
I am working on a library which uses the GKS graphics package. I have a Gks object which opens the GKS subsystem in its constructor: // Gks.hpp class Gks { public : Gks(); };
2
by: Nancy | last post by:
I have the following situation and could use some advise. I have a Base Class CreditReport, classes BoatCreditReport and HomeCreditReport Inherit from CreditReport. I would like to have the...
1
by: Sean W. Quinn | last post by:
Hey folks, I have a question regarding file handling, and the preservation of class structure. I have a class (and I will post snippets of code later in the post) with both primitive data...
4
by: Jason Shohet | last post by:
I noticed that there are two ways I declare classes: 1. public class xxxx { } 2. Somewierdclass myClass; The 2nd example exists provided I have a 'using' statement at the top that...
8
by: StillStuckOnJava | last post by:
I'm using visual studio to create a web application, but I'm having trouble using a few classes that I've defined: public class tank { public tank() { } public float depth; public float...
3
by: KCT | last post by:
The following class member function (DataClass.DataUpdate) is called by an event handler at periodic intervals. I want to increment the counter (Counter) each time it's called, but I don't know...
5
by: Kim | last post by:
Like http://groups.google.dk/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/1ac280aaeed78de0/ and...
9
by: 2005 | last post by:
Hi If I have a class, class CNode { public: CarNode() : m_pNext(0), m_ticketNum(0) {} ~CarNode(); private:
4
by: rebeccatre | last post by:
please help me with this, <style> #a, option.message {background-color: green; color: white;} #b, option.message {background-color: yellow; color: black;} </style> <select id="thisselect">...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.