Hi all!
I'm trying to make something like this:
https://krpano.com/plugins/userpl…ntrols/#example
but, if it's possible, I'd like to avoid using iframes.
I tried the following code, but it doesn't work. Any ideas?
Code
<script src="files/tour.js"></script> <script src="files/plugins/swfaddress.js?tracker=null"></script> <div class="paragraph"> <script> function showexample() { var iframe = '<div id="newpano" name="ccframe" style="width:100%; height:300;"><script>embedpano({swf:"files/tour.swf", xml:"files/tour.xml", target:"newpano", html5:"always", passQueryParameters:true});</script></div>'; document.getElementById("example").innerHTML = iframe; } </script> <div id="example" onclick="showexample();" style="width:500px;height:300px;color:white;background-color:black;border:1px solid gray;cursor:pointer;"> <table width="100%" height="100%" style="color:white;"> <tr valign="middle"><td><center><b>CLICK TO VIEW EXAMPLE</b></center></td></tr> </table> </div> </div>
Thanks