Hi all ^^
I'm finishing my web app and have another request to ask cause of my limited experience in php...
I want to have an only html page who could launch different tours depending on wich a href we have clicked
Not clear ?? ^^
The code part to explain better.
The calling code :
And then in my_tour_page.html :
Code
<script src="js/tour.js"></script>
<div style="width:100%; height:400px; z-index:100; background-color:none;" data-role="none" id="pano" >
<noscript>
<b>Attention:</b> <br/>
<br/>
Javascript is not activated. <br/>
<br/>
Please activate it to see the virtual tour <br/>
</noscript>
<script>
var viewer = createPanoViewer();
if ( viewer.isHTML5possible() )
{
viewer.useHTML5("always");
viewer.addVariable("xml", "tour.xml");
viewer.embed("pano");
}
else
{
// show error message:
// browser is not HTML5/CSS 3D transforms capable.
}
</script>
</div>
Alles anzeigen
What I'd like is that my href links to an unique html page, but launches different tour ^^
Do you think that'll be possible with php stuf using variables on the href ?
Like :
And in the my_tour_page.php
PHP
<script>
var viewer = createPanoViewer();
if ( viewer.isHTML5possible() )
{
viewer.useHTML5("always");
viewer.addVariable("xml", "<?php $my_new_path... ?> /tour.xml");
viewer.embed("pano");
}
else
{
// show error message:
// browser is not HTML5/CSS 3D transforms capable.
}
</script>
Alles anzeigen
The goal is to change the path of the tour.xml using variables in the <a href...
All ideas are welcomed ^^
Thank you in advance !
Best regards.