04.02.2013 Views

WebPlus Essentials User Guide - Serif

WebPlus Essentials User Guide - Serif

WebPlus Essentials User Guide - Serif

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Adding Dynamic Content 239<br />

At any point, you can Add, Delete, and change Export Options for any file.<br />

You can make use of tokens to add a range of variables to your<br />

HTML. Use for breadcrumb navigation that will update dynamically if<br />

you add, remove or change pages within the site.<br />

Adding JavaScript<br />

To source a vast array of JavaScript code, try searching for "javascript snippets"<br />

in your favorite search engine. You should find many thousands of sites hosting<br />

freely available code snippets. Most of these sites will clearly indicate what the<br />

JavaScript will do for you—they'll also normally let you select the JavaScript<br />

code and copy it for pasting directly into the page.<br />

Using IDs<br />

All objects in <strong>WebPlus</strong> are given unique alphanumeric IDs for referencing by<br />

scripting languages. By default, ID generation is automatic for each object, text<br />

column, table row and table cell. For example, a newly drawn QuickShape will<br />

automatically be assigned an ID of "qs_1", a second QuickShape will be "qs_2",<br />

pictures could be "pic_1", "pic_2", etc.<br />

It may be perfectly acceptable to utilize these automatic IDs in your scripts but if<br />

you need to assign your own IDs, it's possible to turn off the site-wide automatic<br />

generation of IDs in the HTML Output tab of the Site Properties dialog (select<br />

Site Properties... from the File menu). Uncheck the option specific for object,<br />

text column, table row and/or table cell and press OK. Your own replacement<br />

IDs can instead be added in the available placeholder, i.e.<br />

If the object is copied on the same page or to another website, the<br />

ID number will be replaced by a new ID number.<br />

Any object ID can be edited once the object is on the web page. A different<br />

name can be used or, if you don't want to show an object's ID (but want to keep<br />

site-wide ID generation), you can prevent the ID from being shown in source<br />

code.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!