|
WebWorks Publisher Cookbook code samples
WebWorks Help: cross-platform, cross-browser
help
Example 50
function WWHelpSwitch_ForceJavaScript()
{
return true;
}
Example 51
<img alt="WebWorks Help 2.0" src="../images/
scriptlogo.gif"/>
Example 52
<img alt="Scriptorium Publishing" src="../images/scriptlogo.gif"/>
Example 53
<table align="right">
<tr>
<td>
<span class="running">$GET_GLOBAL($DOC;_title);</span>
</td>
</tr>
</table>
Example 54
@SET_GLOBAL($DOC;_title, $BPNumberAndDataRaw["^[0-9]+\t",""]["[ \t\r\n]+|<br />", " "];);\
$BPSetTitle;\
<h1 id="$AUTOTAG;" $BPBlockAttributes;><a name="$AUTOTAG;"></a>\
$DATA;</h1><hr/>
Example 55
.running
{ color: #003366;
font-size: 12px; font-style: normal;
font-weight: bold; margin-left: 0em; margin-top: 0em;
margin-bottom: 0em; text-align: right; text-indent: 0em;
text-decoration: none; white-space: normal }
Example 56
<Resources locale="es">
Example 57
<Resources locale="es">
<StaticString key="ContentsTabLabel" value="Contents"/>
<StaticString key="IndexTabLabel" value="Index"/>
<StaticString key="IndexDisplayButtonLabel" value="Display"/>
<StaticString key="SearchTabLabel" value="Search"/>
<StaticString key="SearchQueryLabel" value="Type in the word(s) to search for:"/>
<StaticString key="SearchScopeLabel" value="Choose the scope of the search:"/>
<StaticString key="SearchScopeDefaultLabel" value="All Available Books"/>
<StaticString key="SearchQueryGoButtonLabel" value="Go!"/>
<StaticString key="SearchResultsTitleColumnLabel" value="Title"/>
<StaticString key="SearchResultsBookColumnLabel" value="Book"/>
<StaticString key="SearchResultsRankColumnLabel" value="Rank"/>
<StaticString key="FavoritesTabLabel" value="Favorites"/>
<StaticString key="FavoritesListLabel" value="Pages:"/>
<StaticString key="FavoritesRemoveButtonLabel" value="Remove"/>
<StaticString key="FavoritesDisplayButtonLabel" value="Display"/>
<StaticString key="FavoritesCurrentPageLabel" value="Current page:"/>
<StaticString key="FavoritesAddButtonLabel" value="Add"/>
<StaticString key="IndexJumpDialogTitle" value="Multiple Topics Found"/>
<StaticString key="IndexJumpDialogLabel1" value="The index word or phrase you chose occurs in multiple documents."/>
<StaticString key="IndexJumpDialogLabel2" value="Please pick one, then click Display."/>
<StaticString key="IndexJumpDialogBookColumnLabel" value="Book"/>
<StaticString key="IndexJumpDialogTitleColumnLabel" value="Title"/>
<StaticString key="IndexJumpDialogDisplayButtonLabel" value="Display"/>
<StaticString key="IndexJumpDialogCancelButtonLabel" value="Cancel"/>
</Resources>
Example 58
else if (Locale == "es")
{
MessagesFunction = WWHelp_Messages_es;
}
Example 59
function WWHelp_Messages_es(ParamMessages)
Example 60
function WWHelp_Messages_es(ParamMessages)
{
// Tab Labels
//
ParamMessages["Tabs TOC"] = "Contents";
ParamMessages["Tabs Index"] = "Index";
ParamMessages["Tabs Search"] = "Search";
ParamMessages["Tabs Favorites"] = "Favorites";
// Index Messages
//
ParamMessages["Index SelectFrom"] = "The index word or
phrase you chose occurs in multiple documents.";
// Search Messages
//
ParamMessages["Search Search"] = "Search";
ParamMessages["Search EnterSearch"] = "Type in the word(s) to search for:";
ParamMessages["Search NoMatch"] = "No results for specified words.";
}
Top of page
Copyright © 2001 Scriptorium Publishing Services.
These code samples correspond to examples provided in The
WebWorks Publisher Cookbook. Cookbook owners may use this code
for their WebWorks Publisher projects.
|