You are not logged in.


Tuesday, October 15th 2019, 2:01am

change sphere url using javascript

Hello I need help about krpano..

I am trying to change the sphere url="../storage/uploads/images/tnb.jpg" using javascript

The vrandgyro.xml contain this code

<image stereo="true" stereoformat="TB">
<sphere url="../storage/uploads/images/tnb.jpg" />

I am looking for a javascript code like

<div id="pano" style="width:100%; height:100%;"></div>
embedpano({swf:"inc/krpano.swf", xml:"xml/vrandgyro.xml", target:"pano"});

window.onload = function() {
sphere.url = "../storage/uploads/images/sbs.jpg";

please help I need to change the sphere url using javascript.