Operation Manual

168 | WebPlus Advanced
When you import HTML code, WebPlus inserts a marker into your site at the
site where the code will be placed. Since you won't be able to see the effect of
the HTML until you preview the site, be careful to place the marker correctly.
You'll definitely want to check your Web page in a browser! If there's a
problem, double-check the code you entered and its position on the WebPlus
page. If you have some grasp of HTML, examine the page source in a text
editor such as Notepad or use your browser's "View Source" mode.
To add an HTML code fragment to a page:
1. Click the
Insert HTML Code button on the Web Objects toolbar.
2. Click on the page or pasteboard to create a new HTML Code Fragment
window at a default size or drag to adjust the window's dimensions.
3. In the dialog, use the Paste to Head or Paste to Body button to insert the
clipboard text into the header of the file or into its body.
OR
Use the scrollable code window. Enter one or more HTML code
fragments into the appropriate field.
4. If the code calls for external files, use the Add button to locate them.
Click the Embed button if you want to keep the file(s) separate from your
project file.
5. Click OK to close the dialog, then click (or click and drag) with the
cursor to place the HTML marker on your page.
Adding JavaScript
To source a vast array of JavaScript code, try searching for "javascript
snippets" in your favourite search engine. You should find many thousands of
sites hosting freely available code snippets. Most of these sites will clearly
indicate what the JavaScript will do for you—they'll also normally let you
select the JavaScript code and copy it for pasting into an HTML fragment's,
object's or page's Source window, HTML table cell or directly onto the page.
Here are some typical uses when applying code to your web pages.
Disable right-mouse click on page objects
Add a Print current page button
Add a date and time to your page
Change an object's colour when selected