Select hotspot by GET value

  • Hi everyone!

    I just started with Krpano and i need to open the webpage on a selected hotspot passed by a get value. I tryed with this script but it does not work.... why?? Thx u

    Code
    <script> 
    var krpano = document.getElementById("krpanoSWFObject");
    var variablesGet = parseGetVars(); 
    var hotspot = variablesGet['looktohotspot'];	
     if(hotspot!=null){	
    	krpano.call("looktohotspot(" + hotspot + ")");	
    } 
    </script>

    Edited once, last by lory1990 (June 16, 2015 at 9:20 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!