Hotspot Tooltip on Mouse-over? [event handlers] #45
-
3DHOP is amazing - excellent work! The 3DHOP Hotspot tutorial works great as described using the JavaScript Alert function fired by the The respective parts of the code are:
Is it obvious what I'm doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Dear @SolidModeler, sorry for the huge delay in the reply! You probably already solved the problem by yourself, however, since this answer might be useful to other users, here is a tip for using the Your code seems to be ok, the only thing that could be wrong is the unique ID of the hotspots raising the events ( Let's see an example! If you try to edit the Hotspots and Events how-to (3.2), the respective parts of the code should be:
and
This should work (if not, let us know), giving you the possibility to build a nice tooltip without rewriting a tooltip handler! |
Beta Was this translation helpful? Give feedback.
Dear @SolidModeler,
sorry for the huge delay in the reply! You probably already solved the problem by yourself, however, since this answer might be useful to other users, here is a tip for using the
onEnterSpot
feature in the right way!Your code seems to be ok, the only thing that could be wrong is the unique ID of the hotspots raising the events (
Spot1
andSpot2
in this case). As you know the correspondence between the hotspots/instances unique IDs used in thesetScene
definition and those used in the event handlers provided by 3DHOP is essential to get proper functioning.Let's see an example! If you try to edit the Hotspots and Events how-to (3.2), the respective parts of the code sho…