|
| |
|
|
RickP
Posts: 679 Joined: 11/13/2004 From: Kent, U.K. Status: offline
|
refreshing and visited links? - 10/3/2005 17:00:22
I'm sure this is going to be simple... I want visited links on a page to be a distinct colour but I want them all to retrun to 'normal' when the page is refreshed - what's the obvious way?
_____________________________
Regards, Rick On-The-Web-Now!
|
|
|
|
AMysticWeb
Posts: 855 Joined: 10/23/2002 Status: offline
|
RE: refreshing and visited links? - 10/4/2005 2:53:50
The visited link color is there to show the site visitor he or she has visited this link previously. I am not sure if a refresh would accomplish what you want. This has always troubled me when putting a page together, so now I have both the link and visited link the same color. Go figure.
_____________________________
Hope I have been of some help, Micheal [URL=http://web.archive.org/web/20060101013129/http://www.frontpageforms.com/]FrontPageForms.com-Archive Version[/URL] I am living Proof that Viral Procrastination exists!
|
|
|
|
RickP
Posts: 679 Joined: 11/13/2004 From: Kent, U.K. Status: offline
|
RE: refreshing and visited links? - 10/4/2005 6:40:30
quote:
so now I have both the link and visited link the same color. Indeed, but what I want to achieve is something very specific for a particular project - too much to explain - but I just want a way of 'clearing' visited links and yet still want a distinct colour for them when they are used prior to 'clearing' them. ?
_____________________________
Regards, Rick On-The-Web-Now!
|
|
|
|
caz
Posts: 3546 Joined: 10/10/2001 From: Somewhere south of Chester, UK Status: offline
|
RE: refreshing and visited links? - 10/4/2005 7:07:39
Put a note on to tell the visitor to clear their cache - otherwise you are trying to take control of the user's system and that is really not a Good Thing [tm]
_____________________________
Do not meddle in the affairs of cats, for they are subtle and will dance, or more on your keyboard. Cheshire cat. www.doracat.co.uk I remember when it took less than 4hrs to fly across the Atlantic.
|
|
|
|
RickP
Posts: 679 Joined: 11/13/2004 From: Kent, U.K. Status: offline
|
RE: refreshing and visited links? - 10/4/2005 10:07:05
is there a jscript code to clear cache?
_____________________________
Regards, Rick On-The-Web-Now!
|
|
|
|
d a v e
Posts: 4137 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: refreshing and visited links? - 10/4/2005 11:23:26
not sure i completely understand but how about using Friefox's Miscellaneous > visited links > marks all links unvisited in the developer toolbar??
_____________________________
David Prescott Gekko web design
|
|
|
|
RickP
Posts: 679 Joined: 11/13/2004 From: Kent, U.K. Status: offline
|
RE: refreshing and visited links? - 10/4/2005 13:27:39
quote:
Friefox's Miscellaneous > visited links > marks all links unvisited in the developer toolbar?? That's an interesting one to note... does it mark them as visited in the session still or just doesn't apply the visited colour/formatting at all?
_____________________________
Regards, Rick On-The-Web-Now!
|
|
|
|
dpf
Posts: 7123 Joined: 11/12/2003 From: India-napolis Status: offline
|
RE: refreshing and visited links? - 10/4/2005 13:41:39
quote:
I've never played widget before. is that OT?
_____________________________
Dan
|
|
|
|
dpf
Posts: 7123 Joined: 11/12/2003 From: India-napolis Status: offline
|
RE: refreshing and visited links? - 10/4/2005 13:44:05
you must mean ET or OJ
_____________________________
Dan
|
|
|
|
rdouglass
Posts: 9265 From: Biddeford, ME USA Status: offline
|
RE: refreshing and visited links? - 10/4/2005 14:51:01
I threw together an example page code that does allow you to change the color behind the links using a simple JavaScript and some span tags. I haven't tried integrating it into your page but the way I see it, it shouldn't be that difficult. You'd need a little more CSS to turn those links into boxes but hopefully you get the idea as to what I was talking about. <html>
<head>
<script language="JavaScript"><!--
document.write('<style>');
if (document.layers) document.write('.region { position: relative; }');
document.write('<\/style>');
//--></script>
<script language="JavaScript"><!--
function changeColor(id) {
if (document.getElementById) document.getElementById(id).style.backgroundColor = 'red';
else if (document.layers) document[id].bgColor = 'red';
else if (document.all) document.all[id].style.backgroundColor = 'red';
}
//--></script>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="140">
<tr>
<td width="20"><a href="javascript:changeColor('01');"><span id="01" class="region">01</span></a></td>
<td width="20"><a href="javascript:changeColor('02');"><span id="02" class="region">02</span></a></td>
<td width="20"><a href="javascript:changeColor('03');"><span id="03" class="region">03</span></a></td>
<td width="20"><a href="javascript:changeColor('04');"><span id="04" class="region">04</span></a></td>
<td width="20"><a href="javascript:changeColor('05');"><span id="05" class="region">05</span></a></td>
<td width="20"><a href="javascript:changeColor('06');"><span id="06" class="region">06</span></a></td>
<td width="20"><a href="javascript:changeColor('07');"><span id="07" class="region">07</span></a></td>
</tr>
<tr>
<td width="20"><a href="javascript:changeColor('08');"><span id="08" class="region">08</span></a></td>
<td width="20"><a href="javascript:changeColor('09');"><span id="09" class="region">09</span></a></td>
<td width="20"><a href="javascript:changeColor('10');"><span id="10" class="region">10</span></a></td>
<td width="20"><a href="javascript:changeColor('11');"><span id="11" class="region">11</span></a></td>
<td width="20"><a href="javascript:changeColor('12');"><span id="12" class="region">12</span></a></td>
<td width="20"><a href="javascript:changeColor('13');"><span id="13" class="region">13</span></a></td>
<td width="20"><a href="javascript:changeColor('14');"><span id="14" class="region">14</span></a></td>
</tr>
</table>
</body>
</html>
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
d a v e
Posts: 4137 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: refreshing and visited links? - 10/4/2005 15:02:10
quote:
threw together an example page so modest ;) (and helpful!)
_____________________________
David Prescott Gekko web design
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|