Page comments permit an author to write commentary on particular passages of text and areas of an image. This page explains how to create comments on text and images and outlines requirements for enabling Javascript comments.
Page comments permit an author to write commentary on particular passages of text in a page or on areas of an image embedded as a media object.
If the template in which the page displays includes the necessary Javascript and CSS (see below), the passage or image area to which the comment refers will be highlighted, and when the user mouses over the passage or area, the comment will appear. If the template does not permit Javascript comments (or the user has disabled Javascript in the browser), the comment will appear in the sidebar, and the commented passage will appear as an ordinary link to the comment within the page.
Use of Javascript comments in a template requires the following standard script files:
The function makeCommentLinks() must be run onload.
In addition, CSS should be provided for the following elements and classes:
See screen.css for an example.
The book template and its derivatives as well as the primary website template (/lp/library/) enable Javascript comments.
Comments may be inserted only in the body text of a page.
To create a comment,
create new comment in the comments section of the page form.Reference. The comment reference is an <a> tag; paste this tag at the beginning of the text (in the body text) to which the comment refers, and type the closing tag (</a>) at the end of the text to which the comment refers.A comment may refer to an area of an image only if the image is embedded in the body text using the obj pseudo-element.
To comment on an image, follow the procedure for text, with the following adaptations:
<obj%gt; tag, include the attribute comments="true". (This will cause a standardized note to display in the caption alerting the user to the comments.)<obj%gt; in a <div class="mapped-image">. (The div may have other classes as well, e.g. <div class="figure mapped-image">)save coordinates.obj psuedo-element but inside the div. Additionally, you must place some text inside the a element — a word or two to serve as a brief title for your comment. This text will display on the public page only if the comment cannot be displayed using Javascript.