Closed (fixed)
Project:
Footnotes
Version:
6.x-2.x-dev
Component:
Footnotes
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
28 Feb 2010 at 23:26 UTC
Updated:
7 Aug 2010 at 21:30 UTC
Jump to comment: Most recent
It would be nice to highlight the footnote when clicking its link in the content.
Comments
Comment #1
hingo commentedSounds doable. I'll have a look as time permits.
I'll probably implement this as a small independent module that will highlight the "target" whenever you click on a link with "#in-page-target" in the url.
Comment #2
silurius commentedSubscribing.
Comment #3
Anonymous (not verified) commentedJust use the CSS3 :target pseudoclass.
http://www.w3.org/TR/css3-selectors/#target-pseudo
http://www.catchmyfame.com/downloads/pseudo-target.html
Comment #4
hingo commentedThis is now implemented and will be in next 6.x release (and then 7.x). Thank you jmesam for the tip, without you it would have taken me a while to find the right solution. (And i shudder at the thought that I would've went ahead and implemented the same in javascript!)
It turns out I cannot know what colors people use for their text and background, but I decided to go ahead anyway and use #eeeeee (light gray). README.txt was updated to explain how you can change this to some other color in your theme.
It was also necessary to change some class names in the HTML, so README.txt reminds users to clear their Drupal cache after upgrade.