Simple example of use of JavaScript version of Goldify

The study of systems by the electromagnetic radiation with which they interact or that they produce. By convention, spectroscopic properties are expressed in terms of wavelength in vacuo, not the wavelength within the medium being studied. rotational diffusion coefficient and azenes

This will not be touched - it is in <div> and only <p> elements are processed: rotational diffusion coefficient and azenes.

This again will: rotational diffusion coefficient and azenes, and this won't because it is in italics - rotational diffusion coefficient and azenes.


The above text contains three paragraphs without any links hardcoded to the text. The first and third paragraph have <p> tags, the second has a <div> tag. Goldify is called only on <p> elements and <i> elements are forbidden - no addition of links should take place there. The code at the start of this page looks like this:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="goldbook_terms.js"></script>
<script type="text/javascript" src="goldify.js"></script>
<script type="text/javascript">
 FORBIDDEN_PARENTS = ["a","script","i"];
 $(document).ready(function() {
   create_index();
   goldify("p");
 });
</script>