FrontPage - hidden sections |
Topic status automatically displays here - do not remove.
This topic describes how to use FrontPage to create a block section within a topic which can be made hidden or visible by clicking on a customized link.
Note
You can always go into the HTML view and edit these items directly, however, this topic attempts to describe how to achieve the same results using the WYSIWYNG Normal view as much as is possible, and particularly to minimize the need to edit the HTML code directly.
Important
The following procedures must be followed exactly, or the results will be unpredictable.
How to use FrontPage to create hidden sections:
To enable FrontPage to use DIV tags
Note
One or more adjacent paragraphs as well as images and captions can all be grouped into one contiguous block. Show how ...
To group a section of the topic into a block
Tip
Select only whole paragraphs, by dragging the mouse pointer down the very left edge of the page in line with the section you want to select. Attempting to select paragraphs by dragging the mouse pointer over the text of the paragraph will not work as reliably, and may only select part of the paragraph.
The selection will now display a single line border in Normal view.
To identify a block
Tip
To toggle tag visibility when viewing from the Normal tab, press the keyboard shortcut CTRL + /.
This applies the default style which hides the block.
Notes
This removes the positioning properties, yet leaves the identified DIV tags!
The job is now half done. You've created and identified the section to be displayed.
To create the display link
Notes
Tip
The keyboard shortcut for inserting a hyperlink is CTRL + K.
Note
As no bookmark named "ShowMoreOrLess" exists within this topic, this link will display as a link, but will not jump anywhere! .
Note
No other text will work. The ID must contain the word "ToggleDisplay" (case is sensitive) with no spaces, then the name of the block enclosed within single quotes and again within brackets. No other combination will work. The inclusion of any spaces will cause this to fail.
This creates the link with properties as close as is possible to our requirement, however, there is one last procedure to make it all work. Unfortunately, there doesn't appear to be a way to do this in Normal view.
Note
FrontPage has a bug where the first time you click this link in Preview view, the page is refreshed and the link action is lost. All subsequent clicking of the link whilst remaining in this view behaves properly. It always behaves properly in IE, and in the compiled HTML help.
Here is a working example:
Example
Now you can display and hide text at the click of a button. Show more ...
This section is only displayed when the "Show more ..." link above was clicked. To hide this section, click on the "Show less ..." link above.
This is the following paragraph which gets moved down when the hidden section is displayed.
FrontPage Tips and Tricks |
Lotech
Solutions' Tips, Tricks, and Procedures
Copyright Lotech Solutions. All rights reserved.