Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
![]() |
Source code |
1 2 |
set(layer[get(thumbname)].style, 'hotspot|tooltip'); set(layer[get(thumbname)].tooltip, thumbname); |
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<settings transparent_angle="45"/> <events name="transparent_active" keep="true" onviewchanged="transparent_active"/> <action name="transparent_active" scope="local"> getlooktodistance(current_angle, hotspot[logo].ath, hotspot[logo].atv); clamp(current_angle, 0, get(settings.transparent_angle)); set(current_angle_90, calc( current_angle * (90 / settings.transparent_angle) )); set(current_angle_90_rad, calc( current_angle_90 / 180 * Math.PI )); if(current_angle_90 LT 90, Math.cos(transparent_coeff, current_angle_90_rad); , set(transparent_coeff, 0); ); set(hotspot[logo].alpha, get(transparent_coeff)); trace(hotspot[logo].alpha); </action> |
![]() |
Source code |
1 |
ERROR: parsing '.../plugins/abs.js' failed:SyntaxError: Unexpected token ':' |