Quote:
Originally Posted by HarryT
The precise requirements for a pop-up footnote are as follows:
In the body text:
Code:
<A id="anchor1" href="#fn1">[1]</A>
In the footnote:
Code:
<p><A id="fn1" href="#anchor1">[1]</A>
Text of footnote 1...
</p>
<p><A id="fn2" href="#anchor2">[2]</A>
Text of footnote 2...
</p>
|
Must the names be "anchorX" and "fnX"? Must the footnotes be bare <p> or can they be <div> or have a class? Must the contents of the <A> tags be the same in the text and footnote?
Quote:
When you click the "[1]" footnote hyperlink, the text of footnote 1 will appear in a pop-up window, and will stop at the point at which the next footnote starts.
|
Does it appear styled? If the footnotes are in a separate XHTML file with a different stylesheet from the main text, is it correctly applied?
Quote:
Originally Posted by Notjohn
I usually put the anchor at the start of the paragraph. Otherwise the return clicks simply puts the number as the first character on the "page," which I find rather confusing. (I suppose if it were a long paragraph, I'd put the anchor at the beginning of the sentence.)
Some books put a Back link on top of the note (I suppose it could also go at the end).
|
Maybe this would work.
In the text:
Code:
<P id="anchor_p1">Some text with
a footnote<A id="anchor1" href="#fn1">[1]</A></P>
In the footnote:
Code:
<p><A id="fn1" href="#anchor1">[1]</A>
Text of footnote 1...
<div><A href="#anchor_p1">Back</A></div>
</p>
The idea is that you get the pop-up, but if you display the footnote in its page, you can go back using the "Back" link, which gets you to the start of the paragraph, not to the footnote number. Even if the popup stops at the second <A>, that would be better.