DIR : /home/kozerus/public_html/wz/wz_swap.html
/home/kozerus/public_html/wz
<html>
<head>
<title>ko/wz_swap</title>
<script id=script_swap>
// You could also keep the ids in a string and concatenate them:
// SET_HTML( idArray.join() );
// idString += ',' + someId;
var imgRe = /^.+\.(jpg|jpeg|gif|png)$/i;
function swapMe(pathField, previewName) {
var path = pathField.value;
var img = new Image();
img.src = path;
var width = img.width;
var height = img.height;
myPic = new Image();
myPic.src = path;
var myWidth = myPic.width;
var myHeight = myPic.height;
dd.elements.replaceMe1.swapImage('file://'+path) ;
dd.elements.replaceMe1.resizeTo(myWidth, myHeight);
if (path.search(imgRe) != -1) {
dd.elements.replaceMe.swapImage('file://'+path) ;
}
else {
alert("JPG, PNG, and GIFs only!");
}
}
</script id=script_swap_ned>
</head>
<body bgcolor=linen>
<div id=div_wz_swap>
<h1>div_wz_swap</h1>
</div id=div_wz_swap_end>
</body>
</html>
//
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