Serif WebPlus Essentials Podręcznik Użytkownika Strona 247

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 320
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 246
Adding Dynamic Content 239
At any point, you can Add, Delete, and change Export Options for any file.
You can make use of tokens to add a range of variables to your
HTML. Use for breadcrumb navigation that will update dynamically if
you add, remove or change pages within the site.
Adding JavaScript
To source a vast array of JavaScript code, try searching for "javascript snippets"
in your favorite 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 youthey'll also normally let you select the JavaScript
code and copy it for pasting directly into the page.
Using IDs
All objects in WebPlus are given unique alphanumeric IDs for referencing by
scripting languages. By default, ID generation is automatic for each object, text
column, table row and table cell. For example, a newly drawn QuickShape will
automatically be assigned an ID of "qs_1", a second QuickShape will be "qs_2",
pictures could be "pic_1", "pic_2", etc.
It may be perfectly acceptable to utilize these automatic IDs in your scripts but if
you need to assign your own IDs, it's possible to turn off the site-wide automatic
generation of IDs in the HTML Output tab of the Site Properties dialog (select
Site Properties... from the File menu). Uncheck the option specific for object,
text column, table row and/or table cell and press OK. Your own replacement
IDs can instead be added in the available placeholder, i.e.
If the object is copied on the same page or to another website, the
ID number will be replaced by a new ID number.
Any object ID can be edited once the object is on the web page. A different
name can be used or, if you don't want to show an object's ID (but want to keep
site-wide ID generation), you can prevent the ID from being shown in source
code.
Przeglądanie stron 246
1 2 ... 242 243 244 245 246 247 248 249 250 251 252 ... 319 320

Komentarze do niniejszej Instrukcji

Brak uwag