473,403 Members | 2,359 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,403 software developers and data experts.

Interesting Javascript Problem

I have a sort of complicated problem that I would appreciate any help
I can get with. On my webpage I have a javascript running that
enhances all the links on my page. The script tells ALL the links to
remain blue. However I also have links on the bottom of my page that I
would like to be white, rather then blue. I was just wondering if
there is any possible way to:

1) Create the exact same javascript with the white colors and tell
just my bottom links to run that script, while the rest run on the
blue?

or

2) Is there is any code that I can insert on my webpage that can tell
only my bottom links to ignore the javascript, while the rest of the
page reads it?

Any help you can provide is greatly appreciated!
________________________________
www.gamblingcentre.com
Lucky Lottery Numbers,FREE E-book,
Games,Sports Gambling Tips & Strategies.
Jul 20 '05 #1
2 1543
On 03.7.20 11:34 PM, Gamblingcentre.com wrote:
I have a sort of complicated problem that I would appreciate any help
I can get with. On my webpage I have a javascript running that
enhances all the links on my page. The script tells ALL the links to
remain blue. However I also have links on the bottom of my page that I
would like to be white, rather then blue.


Javascript isn't designed for this kind of thing. You need to use CSS.

Here's a link to get you started:
http://www.csscreator.com/css-forum/viewtopic.php?p=101

Phil
--
Philip Ronan
ph***********@virgin.net
(Please remove the "z"s if replying by email)
Jul 20 '05 #2
Gamblingcentre.com wrote:
I have a sort of complicated problem that I would appreciate any help
I can get with. On my webpage I have a javascript running that
enhances all the links on my page. The script tells ALL the links to
remain blue.
Why? That sounds like a very inefficient way to simulate this CSS:

a:link { color: blue; }
a:visited { color: blue; } /* Bad idea! Knowing which links are visible is
something users find useful! */
However I also have links on the bottom of my page that I
would like to be white, rather then blue.
http://www.allmyfaqs.com/faq.pl?Link...fferent_colors
I was just wondering if there is any possible way to:

1) Create the exact same javascript with the white colors and tell
just my bottom links to run that script, while the rest run on the
blue?
You could give each link a class and test for it in your script.
or

2) Is there is any code that I can insert on my webpage that can tell
only my bottom links to ignore the javascript, while the rest of the
page reads it?


No. Well, short of using frames (eugh) so that they are in a different
document.

--
David Dorward http://david.us-lot.org/
Jul 20 '05 #3

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

Similar topics

13
by: Kai Grossjohann | last post by:
It seems that Ctrl-N in Mozilla opens a new empty browser window. That's fine, I don't need to do anything about it. But Ctrl-N in IE appears to clone the current window. Is there a way to...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
7
by: David Sworder | last post by:
Hi, I'm developing an application that will support several thousand simultaneous connections on the server-side. I'm trying to maximize throughput. The client (WinForms) and server communicate...
1
by: Rakesh Roberts | last post by:
I think I have a very interesting cookie problem. I use form authentications on my application. Through out my application I started using a toggle control that persists its value for the session...
2
by: sasifiqbal | last post by:
Hi, One of my developers are facing an interesting problem regarding UserControl invalidation. The problem is: We have two forms in our application. Form A does nothing except loading of...
27
by: Frederick Gotham | last post by:
I thought it might be interesting to share experiences of tracking down a subtle or mysterious bug. I myself haven't much experience with tracking down bugs, but there's one in particular which...
1
by: | last post by:
Hi all, I have an interesting issue that I think maybe related to AJAX. Here is my scenario:- I have an aspx page that contains an UpdatePanel with UpdateMode="conditional". There exists 2...
4
by: Andrew | last post by:
I am having an interesting namespace conflict. When we use a third party lib we create a company assembly for any descending classes to go in. I have simplified the problem into the example...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.