Hello !
I have a button for each pano and I understood well how to change pano with the .dvl file (pano1) (pano2) etc.
But I would like to know if it is possible to make the same thing with “writecode” (or detect.js) without reloading the page?
detect.js is "multi plugin" and I would like to preserve this feature.
When I make a script as below I have my new pano, but it opens in a new page (without the buttons).
Code:
<SCRIPT type="text/javascript" src="detectvr.js"></SCRIPT>
<SCRIPT type="text/javascript">
// Pano1 when page load
viewerparameters(---------------);
viewerparameters(---------------);
writecode(qtfile, devalvrfile, javafile, flashfile, spivfile, sizex, sizey);
function ChangePano2() {
viewerparameters(---------------);
writecode2(qtfile, qtfile, devalvrfile, javafile, flashfile, spivfile, sizex, sizey);
}
function ChangePano3() {
viewerparameters(---------------);
writecode2(qtfile, qtfile, devalvrfile, javafile, flashfile, spivfile, sizex, sizey);
}
</SCRIPT>
// boutons or links
<a href="javascript:ChangePano2()">Play pano 1</a>
<a href="javascript:ChangePano3()">Play pano 3</a>
Thanks for your help !