<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Can I make different categories of link text on a web page show as "unvisited" after different intervals?</title>
	<link>http://ask.metafilter.com/65284/Can-I-make-different-categories-of-link-text-on-a-web-page-show-as-unvisited-after-different-intervals/</link>
	<description>Comments on Ask MetaFilter post Can I make different categories of link text on a web page show as "unvisited" after different intervals?</description>
	<pubDate>Thu, 21 Jun 2007 05:54:50 -0800</pubDate>
	<lastBuildDate>Thu, 21 Jun 2007 05:54:50 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Can I make different categories of link text on a web page show as &quot;unvisited&quot; after different intervals?</title>
		<link>http://ask.metafilter.com/65284/Can-I-make-different-categories-of-link-text-on-a-web-page-show-as-unvisited-after-different-intervals</link>	
		<description>With Javascript, CSS or anything else, can I make different categories of link text on the same web page behave differently?  Specifically, if I wanted to make a page listing some links I need to visit daily, some I need to visit weekly and some I need to visit monthly -- could I make each category of link text change from &quot;visited&quot; color back to &quot;unvisited&quot; color after the appropriate number of days?  Or if this can&apos;t be done, how would you solve this need (in a visual way, rather than just &quot;keep a list manually of when you visit each&quot;)?
</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2007:site.65284</guid>
		<pubDate>Thu, 21 Jun 2007 05:44:00 -0800</pubDate>
		<dc:creator>lorimer</dc:creator>
		
			<category>javascript</category>
		
			<category>css</category>
		
			<category>link</category>
		
			<category>hyperlink</category>
		
			<category>behavior</category>
		
			<category>web</category>
		
			<category>design</category>
		
	</item> <item>
		<title>By: dmd</title>
		<link>http://ask.metafilter.com/65284/Can-I-make-different-categories-of-link-text-on-a-web-page-show-as-unvisited-after-different-intervals#981285</link>	
		<description>Well, my first question would be &quot;why do you need to visit these daily/weekly/monthly?&quot; - i.e., what is it that&apos;s updating there? &lt;br&gt;
&lt;br&gt;
Presumably this is something that doesn&apos;t have an RSS feed? We need to know why RSS isn&apos;t the right answer here. Or are these links for which RSS wouldn&apos;t even make sense? (e.g. a bank statement - although, now that I say that, I&apos;d love it if my bank would give me secure RSS of my transactions!).</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.65284-981285</guid>
		<pubDate>Thu, 21 Jun 2007 05:54:50 -0800</pubDate>
		<dc:creator>dmd</dc:creator>
	</item><item>
		<title>By: jozxyqk</title>
		<link>http://ask.metafilter.com/65284/Can-I-make-different-categories-of-link-text-on-a-web-page-show-as-unvisited-after-different-intervals#981288</link>	
		<description>Are you always accessing this page from the same computer?&lt;br&gt;
&lt;br&gt;
If so, you could assign a &quot;daily&quot;, &quot;weekly&quot;, or &quot;monthly&quot; &lt;b&gt;class&lt;/b&gt; to each link and set a client-side cookie with Javascript when you click on them, appropriately.&lt;br&gt;
&lt;br&gt;
On preview: Yes, RSS would be your ideal solution if it&apos;s available.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.65284-981288</guid>
		<pubDate>Thu, 21 Jun 2007 05:55:42 -0800</pubDate>
		<dc:creator>jozxyqk</dc:creator>
	</item><item>
		<title>By: cmiller</title>
		<link>http://ask.metafilter.com/65284/Can-I-make-different-categories-of-link-text-on-a-web-page-show-as-unvisited-after-different-intervals#981295</link>	
		<description>You can&apos;t do this in-browser.  Visitedness is a universal cutoff date.&lt;br&gt;
&lt;br&gt;
You can send your browser through some portal that updates the page with a kind of &quot;last clicked here&quot; marker.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.65284-981295</guid>
		<pubDate>Thu, 21 Jun 2007 05:58:42 -0800</pubDate>
		<dc:creator>cmiller</dc:creator>
	</item><item>
		<title>By: lorimer</title>
		<link>http://ask.metafilter.com/65284/Can-I-make-different-categories-of-link-text-on-a-web-page-show-as-unvisited-after-different-intervals#981296</link>	
		<description>Yes, these are mostly pages that change irregularly and don&apos;t have rss feeds.  &lt;br&gt;
&lt;br&gt;
jozxyqk said exactly what I&apos;m looking for -- can anybody tell me how to how to do that, or where I should go to learn how to do that?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.65284-981296</guid>
		<pubDate>Thu, 21 Jun 2007 06:01:20 -0800</pubDate>
		<dc:creator>lorimer</dc:creator>
	</item><item>
		<title>By: desjardins</title>
		<link>http://ask.metafilter.com/65284/Can-I-make-different-categories-of-link-text-on-a-web-page-show-as-unvisited-after-different-intervals#981301</link>	
		<description>you could use the &lt;a href=&quot;http://lifehacker.com/software/timer/days-since-igoogle-widget-tracks-how-much-time-has-passed-262483.php&quot;&gt;Days Since&lt;/a&gt; add-on for iGoogle. Probably someone smarter than me can tell you how to incorporate it into your site. Looks like the code is open source.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.65284-981301</guid>
		<pubDate>Thu, 21 Jun 2007 06:07:06 -0800</pubDate>
		<dc:creator>desjardins</dc:creator>
	</item><item>
		<title>By: jozxyqk</title>
		<link>http://ask.metafilter.com/65284/Can-I-make-different-categories-of-link-text-on-a-web-page-show-as-unvisited-after-different-intervals#981310</link>	
		<description>Instead of changing the color of the link and dealing with classes, it would probably just be a lot easier to just have a &lt;i&gt;last clicked on this link on such-and-such date&lt;/i&gt; label after each link.&lt;br&gt;
&lt;br&gt;
There are plenty of Javascript tutorials out there; any of them should help you figure out how to do something like that.&lt;br&gt;
&lt;br&gt;
Of course, there&apos;s no way to guarantee that you actually *got* to that link, without that link reporting something back to you (and then you&apos;ll probably have to get fancy with PHP or AJAX or something).  With Javascript the best you&apos;ll be able to do is track when you clicked on it.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.65284-981310</guid>
		<pubDate>Thu, 21 Jun 2007 06:15:18 -0800</pubDate>
		<dc:creator>jozxyqk</dc:creator>
	</item><item>
		<title>By: malevolent</title>
		<link>http://ask.metafilter.com/65284/Can-I-make-different-categories-of-link-text-on-a-web-page-show-as-unvisited-after-different-intervals#981460</link>	
		<description>Yeah, it can be done with JavaScript and cookies; capture the clicks, store the dates in a cookie, and use that data to style the links appropriately. Not rocket science, but moderately complicated to code.&lt;br&gt;
&lt;br&gt;
Have you considered using a personal organiser app (iCal, Outlook, Google Calendar, etc.) to prompt you to visit these URLs?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.65284-981460</guid>
		<pubDate>Thu, 21 Jun 2007 09:12:15 -0800</pubDate>
		<dc:creator>malevolent</dc:creator>
	</item><item>
		<title>By: Rhomboid</title>
		<link>http://ask.metafilter.com/65284/Can-I-make-different-categories-of-link-text-on-a-web-page-show-as-unvisited-after-different-intervals#981754</link>	
		<description>Right so the basic outline of doing this in JS would be have the links call some JS function:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;&amp;lt;a href=&quot;http://site1.example.com&quot; onclick=&quot;javascript:record_click(this);return false&quot;&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
...where &lt;tt&gt;record_click(foo)&lt;/tt&gt; somehow encodes foo.href and the current date/time into an alphanumeric string, and then sets that string in a cookie (document.cookie = string) on the current page.&lt;br&gt;
&lt;br&gt;
Then you&apos;d have an onload script that walks the DOM for all A elements, extracts their href, checks all the cookies in the current page for one that matches, extracts/decodes the last click time, and computes whether it&apos;s before or after the desired cutoff.  Based on that decision, add a class to the &apos;a&apos; element, which you can reference from the stylesheet to set the color.&lt;br&gt;
&lt;br&gt;
As a refinement, you could set a class on the links that determines their cutoff time:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;&amp;lt;a class=&quot;oneweek&quot; href=&quot;http://site1.example.com&quot; onclick=&quot;javascript:record_click(this);return false&quot;&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;code&gt;&amp;lt;a class=&quot;onemonth&quot; href=&quot;http://site2.example.com&quot; onclick=&quot;javascript:record_click(this);return false&quot;&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
In your onload handler, you&apos;d check for the presense of these class values and use that to determine if the cutoff has happened or not.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.65284-981754</guid>
		<pubDate>Thu, 21 Jun 2007 12:37:35 -0800</pubDate>
		<dc:creator>Rhomboid</dc:creator>
	</item><item>
		<title>By: Rhomboid</title>
		<link>http://ask.metafilter.com/65284/Can-I-make-different-categories-of-link-text-on-a-web-page-show-as-unvisited-after-different-intervals#981761</link>	
		<description>Oh and just in case it wasn&apos;t clear, when encoding the cookie values you&apos;d want the format to be &lt;tt&gt;asciiurl=datevalue&lt;/tt&gt;, where asciiurl is a ascii-ified version of the HREF and datevalue is something easily parsed, e.g. unixtime.  That way each click on url overwrites the previous value of the cookie; and you can easily scan the part on the LHS of the = for a given URL</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.65284-981761</guid>
		<pubDate>Thu, 21 Jun 2007 12:42:01 -0800</pubDate>
		<dc:creator>Rhomboid</dc:creator>
	</item>
	</channel>
</rss>
