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



Your browser does not support the HTML5 canvas element.


Drag mouse to navigate.

Navigation





17.Aug.2010, Martin Wengenmayer