/*------------------------------------------------------------------------------ Function: footnoteLinks() Author: Aaron Gustafson (aaron at easy-designs dot net) Creation Date: 8 May 2005 Version: 1.3.3 Homepage: http://www.easy-designs.net/code/footnoteLinks/ License: Creative Commons Attribution-ShareAlike 2.0 License http://creativecommons.org/licenses/by-sa/2.0/ Note: If you change or improve on this script, please let us know by emailing the author (above) with a link to your demo page. ------------------------------------------------------------------------------ April 2006 - Liana Thomas * Changed footnoteLinks to take an array of IDs to traverse. * Made a fix so that in IE images aren't counted. (checks that the 'href' and 'src' attribute are not equal which works because 'src' won't be set for non-image link tags) * Changed classes from .printOnly to printonly and .ignore to .ignore-footnotes ------------------------------------------------------------------------------*/ function footnoteLinks(containerIDs,targetID) { if (!document.getElementById || !document.getElementsByTagName || !document.createElement) return false; var target = document.getElementById(targetID); var h2 = document.createElement('h2'); addClass.apply(h2,['printonly']); var h2_txt = document.createTextNode('Links'); h2.appendChild(h2_txt); var ol = document.createElement('ol'); addClass.apply(ol,['printonly']); var num = 1; var myArr = []; for (z = 0;z < containerIDs.length;z++){ if (!document.getElementById(containerIDs[z]) || !document.getElementById(targetID)) return false; var container = document.getElementById(containerIDs[z]); var coll = container.getElementsByTagName('*'); var thisLink; for (var i=0; i