I am using the jQuery UI Highlight effect to highlight one of many (>20) footnotes because they can easily fill an average screen once directed there. I am passing the footnote number as a value of a function with an onclick event. I am sure there is a more elegant way of implementing this without those cluttering up the HTML, but I am a relatively new to JS...
function highlighter(footnote_number) {
$(document).ready(function () {
$('li[id="footnote' + footnote_number + '"]').effect("highlight", {}, 3000);
});
};
Footnotes within the text:
<a id="footnote_a1" href="#footnote1" onclick="highlighter('1')">1</a>
direct to:
<div id="footnotes">
<ol>
<li id="footnote_a1">
(Footnote)
<a href="#footnote1">↑</a>
</li>
</ol>
</div>