DIR : /home/kozerus/public_html/ko/ko_fireclick.html
/home/kozerus/public_html/ko
<script id=script_fireclick>
// this function can fire onclick handler for any DOM-Element
// function fireClickEvent(element) {
function fireclick(element) {
var evt = new window.MouseEvent('click', {
view: window,
bubbles: true,
cancelable: true
});
element.dispatchEvent(evt);
}
</script id=script_fireclick>
<script id=script_open_same_window>
// this function will setup a virtual anchor element
// and fire click handler to open new URL in the same room
// it works better than location.href=something or location.reload()
function open_same_window(targetURL) {
var a = document.createElement('a');
a.href = targetURL;
// fireClickEvent(a);
fireclick(a);
}
</script id=script_open_same_window_end>
<script id=script_open_new_window >
function open_new_window(targetURL) {
var a = document.createElement('a');
a.href = targetURL;
a.target = '_blank'; // now it will open new tab/window and bypass any popup blocker!
// fireClickEvent(a);
fireclick(a);
}
</script id=script_open_new_window_end >
//
koh5_pano
Drag mouse to navigate.
Navigation
- Left/Right Mouse drag: Changes camera heading.
- Up/Sown Mouse drag: Changes camera pitch.
- Scroll wheel: Changes camera field of view.
- I-Key: Displays Info panel with canvas size, image size and FPS.
17.Aug.2010, Martin Wengenmayer