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
- Open the page that contains the link needing the script.
- Find the word(s) that need the link and look at the source code.
- Add the following code to the beginning of the words:
<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;">
- At the end of the words add the closing tag:
</a>
- 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).
- 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.
- Save and close the file.
|