<!--
// onload="return imgzoom(this,150);" style="cursor: pointer;" onclick="javascript:window.open(this.src);"
function imgzoom(img,maxsize){
	var a=new Image();
	a.src=img.src
	if(a.width > maxsize * 4)
	{
		img.style.width=maxsize;
	}
	else if(a.width >= maxsize)
	{
		img.style.width=Math.round(a.width * Math.floor(4 * maxsize / a.width) / 4);
	}
	return false;
}
//图片自动调整的模式，1为按比例调整 ，2 按大小调整。
var resizemode=2
// onload="imgresize(this);"
function imgresize(o){
	 if (resizemode==2 || o.onmousewheel){
	 	if(o.width > 150 ){
				o.style.width='150px';
			}
			if(o.height > 150){
				o.style.height='150px';
			}
		}else{
		var parentNode=o.parentNode.parentNode
		if (parentNode){
		if (o.offsetWidth>=parentNode.offsetWidth) o.style.width='50%';
		}else{
		var parentNode=o.parentNode
		if (parentNode){
			if (o.offsetWidth>=parentNode.offsetWidth) o.style.width='50%';
			}
		}
	}
}


<!--
//图片按比例缩放
var flag=false;
function DrawImage(ImgD,width,height){
var image=new Image();
var iwidth = width; //定义允许图片宽度，当宽度大于这个值时等比例缩小
var iheight = height; //定义允许图片高度，当宽度大于这个值时等比例缩小
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width/image.height>= iwidth/iheight){
if(image.width>iwidth){ 
ImgD.width=iwidth;
ImgD.height=(image.height*iwidth)/image.width;
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}

//ImgD.alt="点击浏览图片"+image.width+"×"+image.height;
}
else{
if(image.height>iheight){ 
ImgD.height=iheight;
ImgD.width=(image.width*iheight)/image.height; 
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
//ImgD.alt="点击浏览图片"+image.width+"×"+image.height;
}
}
} 
//调用：<img src="图片" onload="javascript:DrawImage(this)">



function showurl1(url)
  {
  var content;
  window.clipboardData.setData('Text','<img src="'+url+'">');
  content='网络地址已拷贝到剪贴板，可以使用粘贴或Ctrl+V调用。\n\n<img src="'+url+'">';
  alert(content);
  }
function showurl(url)
  {
  var content;
  window.clipboardData.setData('Text',url);
  content='网络地址已拷贝到剪贴板，可以使用粘贴或Ctrl+V调用。\n\n'+url;
  alert(content);
  }
//-->
