Email this Page
Log Support Call
Send Feedback
Print |
||||||||||||||
Random AdvertsRandom advert functionality can be used to add rotating adverts, or graphics, to a webpage. Each time a new page is viewed, or the current page refreshed, the advert is changed. Instead of showing one or more static adverts you can use the random adverts functionality to cycle through a group of adverts or images. As an example, we use this functionality on our website to cycle through a selection of advert and message blocks, increasing the information we are able to deliver to visitors.
Random adverts using images are created by adding the advert's image file to an Author-it topic, then publishing and uploading the files to the webserver. When the book is published the image file and HTML file (used to call the advert) are uploaded to the Content folder (if you have translated your website the files are uploaded to the language sub folder). To display the advert you must create a sub folder for each advert block within the language folder. Move the HTML files for the adverts to the new sub folder, while leaving the image files with the main content. The random advert code uses the files in the sub folder to call and display the advert in your webpage. You can display several advert blocks on the same page. To do this, add a placeholder for each block in the template (identifying each block by naming it, for example, ads1, ads2, etc), create a folder for each block, and reference the appropriate block in the placeholder value. Tip: Create advert blocks for different types of adverts, for example, image-based ads, comments, etc. In Website Manager define the placeholder value at global, experience, or content level using the following format:
Note: The parameters for the number of adverts displayed from a folder and the orientation are optional.
To Add Random Advert Functionality:
To Call the Advert Files:
|
||||||||||||||
| Top of Page |
Email this Page
Log Support Call
Send Feedback
Print |
|||||||||||||
|
||||||||||||||