6.4. Hotspots

In the Free Edition hotspots are not available. You need to upgrade to the full version to use hotspots.

Users can extend the interaction available with the 3DSOM Pro Java Viewer models by defining active regions ('hot-spots') on the 3D model. When the mouse cursor is left stationary over a hotspot region ('hovers') the java viewer will overlay a short text message in a box. When a hotspot region is clicked the web page can be dynamically changed using JavaScript.

TIP:

Use the hotspot editor available from the 3DSOM Pro web site (http://www.3dsom.com/dowload/) to author your hotspots and automatically generate the required html pages and scripts.

Implementing hotspots for experienced programmers

Hotspots are implemented using JavaScript functions called by the applet. If you wish to extend the code generated by the hotspot editor or implement your own hotspots then you will need to know about the following parameters:

If you wish to write your own JavaScript handler functions note that they are called from the applet and execution will return to the applet. If the applet is no longer there (e.g. the function opens a new URL on top of the existing page) the results may be unpredictable in some browsers. Use the setTimeout JavaScript function in these cases to avoid problems.