This has only been tested on a Mac and with Safari, Firefox, Chrome and Opera.
Works in Flash and HTML5 and the size of the window can be adjusted.
This can be used for Hotel booking forms, checkout pages and such like as well as popup information pages. When the window is open you can not interact with the panorama until it is closed.
1) First make your html page that will popup. I used TextEdit and saved as an HTML page. In the attached example I saved two, pop1.html and pop2.html and put them in a sub folder called modal pages.
2) Add a button or point hotspot and give it the action:
Code: Select all
Mouse Click => Go To URL => URL: javascript:modalWin(); => Target:
Code: Select all
Mouse Click => Go To URL => URL: javascript:modalWin1(); => Target:
Mouse Click => Go To URL => URL: javascript:modalWin2(); => Target:
3) Add this to the head section of your HTML page:
Code: Select all
<script type="text/javascript" >
function modalWin1() {
if (window.showModalDialog) {
window.showModalDialog("modal pages/pop1.html","Test Modal","dialogWidth:255px;dialogHeight:250px");
} else {
window.open('modal pages/pop1.html','name','height=255,width=250,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,modal=yes');
}
}
</script>
The attached project has two information buttons and two point hotspots that opens the modal windows. The index 2 page has the additional code for the modal windows.
Have fun,
Hopki