Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > NEWBIE: How to determine if link has been visited earlier?

Reply
Thread Tools

NEWBIE: How to determine if link has been visited earlier?

 
 
marcokrechting@zonnet.nl
Guest
Posts: n/a
 
      07-30-2005
Hi All,

I'm trying to create a page with hyperlinks and the code displayed
below is how I display the links. I want to add something to distingish
between links that have been visited and those who haven't. Some kind
of bullet.gif or something.
I want to save the visited links in a cookie and when the page is
opened that the links who have been visited are displayed different.
When I click a link this must be added to the cookie.

function HW(link,tekst,clipdata) {
target=telt();
if (wi==1) {
target="_top";
}

text2write = b2 + link + "'" + tag + target + "'";
text2write += "onclick='setClip(\"" + clipdata + returnDate() +
"\");";
text2write +=
"n(\""+target+"\",\""+"http://cww."+link+"\",\""+tekst+"\")'";
text2write += ">" + tekst + L;

h(text2write);

}

function setClip(clipdata) {
if (window.clipboardData) {
window.clipboardData.setData('text', clipdata);
}

<SCRIPT language=javascript>
HW('myweblink/2005/Rep','Reports 2005','MWL.BRIEF.2005.') Etc...
</SCRIPT>

}

Regards
Co

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How do I know what sites have been visited on my PC? indiechick General Computer Support 1 08-26-2007 12:54 PM
how to set link's "visited" property/pseudo-class without clicking on the link friday13 Javascript 3 04-28-2007 12:14 AM
The printing has been stopped and this job has been add to the queu? dejola Computer Support 6 12-30-2005 03:26 AM
Using cookies to determine the last page visited Anita C ASP .Net 1 12-23-2003 08:07 PM



Advertisments