473,396 Members | 1,797 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.

color change

I have a page I am trying to fix for my friend:

http://www.aynrandstheofknowledge.co...a/justice.html

It has text with references to footnotes.

We would like to "visited" tags to change color as soon as a link is
clicked on. Now, and not wait for a browser reload.

Click a link, visit the footnote, click back and the link to the
footnote is now a new color.

Can anyone help with a script that accomplishes this??

TIA

Scott

Jul 20 '05 #1
4 1289
In article <gN********************@mminternet.net>,
sc***@amazonreptiles.spamsux.com enlightened us with...
Click a link, visit the footnote, click back and the link to the
footnote is now a new color.

Can anyone help with a script that accomplishes this??


For browsers with style only. Will work in NN6+ and IE5+. Check other
browsers if necessary.

<A onClick="if (this.style) this.style.color='#FF0000';">Open Link</A>

--
--
~kaeli~
Once you've seen one shopping center, you've seen a mall.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #2
kaeli wrote:
In article <gN********************@mminternet.net>,
sc***@amazonreptiles.spamsux.com enlightened us with...
Click a link, visit the footnote, click back and the link to the
footnote is now a new color.

Can anyone help with a script that accomplishes this??

For browsers with style only. Will work in NN6+ and IE5+. Check other
browsers if necessary.

<A onClick="if (this.style) this.style.color='#FF0000';">Open Link</A>

It'll look like a link but it doesn't say where to link too.

Jul 20 '05 #3
In article <xb********************@mminternet.net>,
sc***@amazonreptiles.spamsux.com enlightened us with...

For browsers with style only. Will work in NN6+ and IE5+. Check other
browsers if necessary.

<A onClick="if (this.style) this.style.color='#FF0000';">Open Link</A>

It'll look like a link but it doesn't say where to link too.


That's because it is an example with no href to show you the onClick.

--
--
~kaeli~
Why did kamikaze pilots wear helmets?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #4
kaeli wrote:
In article <xb********************@mminternet.net>,
sc***@amazonreptiles.spamsux.com enlightened us with...
For browsers with style only. Will work in NN6+ and IE5+. Check other
browsers if necessary.

<A onClick="if (this.style) this.style.color='#FF0000';">Open Link</A>


It'll look like a link but it doesn't say where to link too.

That's because it is an example with no href to show you the onClick.


LOL, oops. I figgered it out.

Jul 20 '05 #5

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

Similar topics

18
by: Jan Tuxen | last post by:
Jakob Nielsen in his most recent Alertbox (http://www.useit.com/alertbox/20040503.html) tells web authors to change the color of visited links. I agree to his purpose: Help users understand...
5
by: AFN | last post by:
I'm trying to set a submit button to change text and color when clicked. Like saying "please wait" instead of "submit" and then changing the background color and text color. All works, except for...
4
by: Alexandre Jaquet | last post by:
Hi, I would like to know how can I change a row background color when an user select a row thx
11
by: Yeah | last post by:
I have a multiple choice quiz where I would like to use CSS to change the color of the answers upon clicking them. I would like to present the right and wrong answers up front, rather than direct...
2
by: Sean | last post by:
Hi all, I have a treeview and because I subclass the treeview and allow multiple selection to be done on the treeview, I have a problem changing the background color of the treeview. The...
4
by: ACaunter | last post by:
Hi there, I was wondering if there was a way to change the font color of the text in the title bar... by default the title bar is that dark blue faiding into light blue and it has white text......
3
by: Roger | last post by:
Is this an easy thing to change? I want to put an option button on a form and want to dynamically change the color (Red, Yellow, Green) for showing a status. I figured it would be an easy task,...
6
by: Joe | last post by:
I want to fade a color to another color in a user control. Actually the color is the BackColor of the User control. What's the easiest way to do this? Thanks, Joe
6
by: sr | last post by:
please help i have problem: I know how to change color row in table when my mouse is over on this row and change color to another color when my mouse is out from this row. but i dont know how to...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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.