Home

Downloads

FAQs

Sample Book

Features

Forum

 

Hotspots on Pages

You can only use buttons in Flash pages (SWFs). For image pages the hotspot facility provides the ability to:-

Yes you can do all three if you want.

Hotspots are declared in the pages.xml file using the X,Y,W,H values. Open your page in, say, Fireworks and lay a rectangle over the hotspot you want are then note the X,Y,W,H values.

Note, Hotspots do not extend to the outer edges of the page where you would normally grab the page to turn it. So an X value of zero would effectively be clipped. This is controlled by the book parameter clickarea_factor, which is 0.25 by default. This means that, for a page width of 300, there is a band 0.25x300 (75 pixels) along the outer edges where the hotspot is ineffective.

In pages.xml you would add hotspots for a page like this:-

<page...>
<hotspot X="0" Y="0" W="300" H="100" pageNum="12" />

<hotspot X="0" Y="100" W="300" H="100" URL="http://www.google.com" />


</page>

Any number of hotspots can be added. When the page is clicked they are scanned in the order given. They can overlap (why would you want that) and each hotspot action would take place.

Hotspot options.

Option Comment
id hotspot id - just a simple text name for it.
pageNum page number to go to. This is zero based (front Cover=0)
pageId got to page which has the given Id
URL web page to open - opens in an external browser window.
audioTrack Id of audio track to play when the hotspot is clicked.
X,Y,W,H X,Y coords of upper left corner the Width and Height.