Here is an example that works for me. Note this is using Fancybox2.
Step #1:
Install the Fancybox javascript code on your server and include everything in the instructions here:
http://fancyapps.com/fancybox/
Step #2:
Put this code in your .html file that launches the .xml
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<script>
function display_box (url) {
$.fancybox({
'href': url,
'width' : '100%',
'height' : '100%',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});
}
</script>
|
Step #3:
Launch the box from your KrPano XML on a click event like this
|
Source code
|
1
|
onclick="js(display_box(http://www.url.com)););"
|