473,387 Members | 1,592 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,387 software developers and data experts.

IE 6: Links to Anchors in the Same Page

I have a lengthy page with several paragraphs. At the top of the page
is a navigation bar with anchors to each of the paragraphs (the links).

The problem is this: If I go to the page (after the cache and history
have been cleared) the links are blue because I haven't clicked any of
the links (this is expected). Now, if I click to another page and then
return, all the links now indicate that they have been clicked. This is
not what I would expect - I would expect them to still be blue, but now
they are the purplish color.

Can you please advise what I'm doing wrong?

Again, this is IE6 and I am using just a plain text editor to write the
html and css. The css is below. Thanks in advance.
div#navbarupper{
height: 30px;
width: 100%;
border-top: solid #000 2px;
border-bottom: solid #000 2px;
background-color:#9FBFDF;
}
div#navbarupper ul{
margin: 0px;
padding: 0px;
color: #FFFFFF;
line-height: 30px;
white-space: nowrap;
text-align: center;
font-size: large;
}
div#navbarupper li{
list-style-type: none;
display: inline;
}

div#navbarupper a{
padding: 6px 10px;
}

div#navbarupper a:link{
background: transparent;
color: #0000FF;
}

div#navbarupper a:hover {
background: transparent;
color: #FF0000;
background-color: #EDEDED;
}

div#navbarupper a:visited{
background: transparent;
color: #800080;
}

Dec 6 '05 #1
1 1611
"eomer" <eo*******@yahoo.com> wrote:
I have a lengthy page with several paragraphs. At the top of the page
is a navigation bar with anchors to each of the paragraphs (the links).
Different browsers treat same-page references differently. In CSS terms, this
means that such links might be in :visited state when the page on which they
appear has been visited, or only when the link has been followed. You can't
change this behavior in CSS.
Can you please advise what I'm doing wrong?


A few things like setting heights in pixels and setting color to a specific
value and background to transparent. But as regards to treating links as
visited or unvisited, nothing.

You might consider dividing the long page to small pages, one paragraph on
one page, and with the table of content ("navigation bar") on a separate
page.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Dec 6 '05 #2

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

Similar topics

7
by: Ben Wilson | last post by:
To anyone who can help me, you have my thanks in advance. I am implementing a "301 Moved Permanently" redirect in my website due to a change of our domain names. Unfortunately, I am having a...
7
by: Will Hartung | last post by:
I have this: <a class="pink_link" href="faq.html#q1">Go to question 1</a> And the CSS is simply: ..pink_link {color: #fa61b7; font-weight: bold;} So, I'm curious why my links are blue and...
21
by: adrian suri | last post by:
Hi just started to experement with styleshhets, and have defined hover a:hover { Color : red; Text-decoration : none; Border-top-width : medium; Border-right-width : medium;
12
by: Rich | last post by:
Strangely, on-page anchors will work on MSIE, but not on Netscape7.2 or Firefox1.5. All anchors are numbers e.g. <a href="#21">TOPIC</a> supposed to connect down to <a name="#21>beginning of...
16
by: Frances | last post by:
<a href="#1"> <a name="#1"> this link is not working in FF (works fine in IE..) would appreciate thoughts/suggestions.. thank you.. Frances
4
by: Miroslav Stampar [MCSD.NET / Security+] | last post by:
I need to get all links from an document element. In sample below how can i get link to "www.google.com" from element with ID="here" <html> <head> <title></title>
3
by: harv3yb1rdman | last post by:
Hi, I have a blog which people often include a link in their comment. Can anyone point me to a script or demonstrate how I can automatically surround the text links with an anchor when the...
3
by: tjtryutyu | last post by:
I know very little javascript. Nonetheless, I found some example code that opens links into a new window if they contain "external" on the "rel attribute. For example: <a href="http:example.com"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.