Previous Page | Right click this page to print.

Adding the Pop-up Script

When the Script Should be Used

The pop-up script (see an example)should be used when a link in the pages references one of the following:

  • An external link that references outside of the site
  • A link that references a template or page that does not have the main navigation (pop-up menus). For instance, the story template.

Using the Script

  1. Open the page that contains the link needing the script.
  2. Find the word(s) that need the link and look at the source code.
  3. Add the following code to the beginning of the words:
  4. <a href="LINK_GOES_HERE.htm" onClick="window.open('LINK_GOES_HERE.htm', '', 'resizable=yes,location=yes,toolbar=no,status=no,menubar=no,scrollbars=yes,width=640,height=480,top=0,left=300');return false;">
  5. At the end of the words add the closing tag:
  6. </a>
  7. the href="" attribute and the onClick="window.open() event need to have the same desired hyperlink address.
    • The editable links are shown in bold above (LINK_GOES_HERE.htm).
  8. The position and size of the pop-up window can be altered by adjusting the width, height, top, and left attributes found in bold at the end of the script above.
  9. Save and close the file.

 

Previous Page | Right click this page to print.