Web Graphic Placeholder Replacement

The page below is using a web graphic placeholder created by using setHTMLContent():
The PowerPac provides several methods for dynamic web graphic placement.
EXAMPLE:
Here is a typical way this could be accomplished using the Actions Editor using setHTMLContent().
Create a ToolBook page with a field into which you want to load your web graphic. In the example below I named the field "myGraphic" for the sake of this example.
Add an action to the field for the on load page that executes setHTMLContent() with the content set to your graphic.
Include your graphic as an external resource to be included when the book is exported by using the PowerPac menu item Add folders to export tree . . .
Export your book to see the results. ENJOY!
The PowerPac provides several methods for dynamic web graphic placement.
- setHTMLContent()
- pgStyleObject()
set the background style to a url like this: url(../media/myGraphic.png) - Style sheets loaded with pgExtFiles()
Create a style class in the stylesheet that sets the background to a url and load the stylesheet with pgExtFiles(). Then, assign the class to an object on your page by using the PowerPac function userProperty(). - XML configuration files that set the html content of the object in question.
Please visit the XML Configurations section of this forum.
EXAMPLE:
Here is a typical way this could be accomplished using the Actions Editor using setHTMLContent().
Create a ToolBook page with a field into which you want to load your web graphic. In the example below I named the field "myGraphic" for the sake of this example.
Add an action to the field for the on load page that executes setHTMLContent() with the content set to your graphic.
Include your graphic as an external resource to be included when the book is exported by using the PowerPac menu item Add folders to export tree . . .
Export your book to see the results. ENJOY!