You are not logged in.

Dear visitor, welcome to 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.


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.