<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - dougunderscorenelson</title>
<link>http://snipplr.com/users/dougunderscorenelson/tags/anchor</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 16 Feb 2012 22:51:42 GMT</pubDate>
<item>
<title>(jQuery) Call a function on an anchored object</title>
<link>http://snipplr.com/view/17681/call-a-function-on-an-anchored-object/</link>
<description><![CDATA[ <p>Sometimes you click a link like faq.html#item5 and, after the browser jumps you to the anchor, you have trouble spotting the item you're looking for. anchorAway is a little function that helps you call a function on anchored items, maybe something like a scrollTo or a background color, that helps users easily spot the content you directed them to.

anchorAway parses the window.location for an anchor (#foo), finds it, and calls the function (act(bar)) on it. It also finds any on-page links to the objects you've specified and binds the same function to their click event.</p> ]]></description>
<pubDate>Thu, 30 Jul 2009 10:44:09 GMT</pubDate>
<guid>http://snipplr.com/view/17681/call-a-function-on-an-anchored-object/</guid>
</item>
</channel>
</rss>
