• HTTP URLs support fragment identifiers that link to a specific part of a web page. A fragment identifier is placed at the end of the URL and is separated by the "#" character. You can use this fragment identifier to specify a particular pano to load.

    When loading a new scene, use the following javascript to set the fragment identifier.

    Code
    document.location.hash = "#" + pano;
    krpano.call("loadscene(" + pano + ");");

    When a page first loads, use the following javascript to load the URL-specified scene.

    Code
    if(document.location.hash){
            // hash begins with '#', so remove first char to access pano name
            krpano.call("loadscene(" + document.location.hash.substr(1) + ");");
    }

Participate now!

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