2 replies [Last post]
jeffperry
jeffperry's picture
Offline
newbie
Last seen: 10 years 50 weeks ago
Timezone: GMT-5
Joined: 2011-10-13
Posts: 2
Points: 3

The code below works (the "zip file" link turns red after you visit it) on Firefox 3.6.

It does not work (the "zip file" link stays blue after you visit it) on Chrome 14 and IE 9.

The "html link", of course, works as expected: it turns red on all browsers after you visit it.

Is there another way to specify "visited" in IE and Chrome for links that go to files that you download rather than to html?

--- index.html ---
1
2
3
4
5
6 Natural Scene Statistics
7
8
9
10 zip file
11 html file
12
---
-- style.css ---
1 a.my_link {
2 color: blue
3 }
4 a.my_link:visited {
5 color: red
6 }
---

jeffperry
jeffperry's picture
Offline
newbie
Last seen: 10 years 50 weeks ago
Timezone: GMT-5
Joined: 2011-10-13
Posts: 2
Points: 3

forgot to surround with tags

forgot to surround with tags sorry

  1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2 
  3 <html xmlns="http://www.w3.org/1999/xhtml">
  4 <head>
  5 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  6 <title>Natural Scene Statistics</title>
  7 <link href="style.css" rel="stylesheet" type="text/css" />
  8 </head>
  9 <body>
 10 <a class="my_link" href="tmp.zip">zip file</a>
 11 <a class="my_link" href="tmp.html">html file</a>
 12 </body>

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 6 days 15 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

Hi jeffperry, I don't think

Hi jeffperry,
I don't think you will have much luck with this as you are not really visiting the download.