Sie sind nicht angemeldet.

1

Mittwoch, 24. Juni 2009, 14:48

Hotspots Visible Toggle

Hello
is there a way to toggle the hotspots visible a different way instead of...
onclick="switch(hotspot.visible);"
----- the spots hide off/on this way but they are Not Hot when off - I would like to hide the hotspots but make them still clickable and let the end user hide/show them visually as they prefer.




I tried to use onclick="switch(hotspot.alpha);" --- but when they hide the spots will not turn visible again when clicked




also...


is there a way to make All the hotspots hide by default when the scene first loads?


*rolleyes* Thanks!!


Kent

2

Mittwoch, 24. Juni 2009, 22:50

Hi,
I tried to use onclick="switch(hotspot.alpha);" --- but when they hide the spots will not turn visible again when clicked
the switch() action switches by default between "true" and "false", but "alpha" is a value from "0.0" to "1.0",
you could use:

Quellcode

1
 onclick="switch(hotspot.alpha, 1, 0);" 
to switch between visible(alpha=1) and invisible(alpha=0), the hotspots should be still clickable in this case


is there a way to make All the hotspots hide by default when the scene first loads?
e.g.

Quellcode

1
<krpano onstart="set(hotspot.alpha,0);" />

or:

Quellcode

1
<events onxmlcomplete="set(hotspot.alpha,0);" />


best regards,
Klaus

3

Freitag, 26. Juni 2009, 04:59

Thanks

Thanks - works perfect and adds the touch i was lookin for - I will post the tour soon when i get the tweeks done

Kent *cool*