News新闻

业界新闻动态、技术前沿
Who are we?

您的位置:首页      JS/JQ/AJAX      jquery压缩图像

jquery压缩图像

发布日期:2014-05-10 00:00:00 829

jquery按比例压缩图像

<%@ include file="/jsp/parents/jsp/utils.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "css/popUpImg/popImage.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript" src="${basePath}js/jquery-1.7.1.min.js" ></script>
<script type="text/javascript" language="javascript" src="${basePath}js/popUpImg/jquery.popImage.mini.js" ></script>
<script type="text/javascript" language="javascript" src="${basePath}js/jquery.ae.image.resize.min.js"></script>

<script type="text/javascript">

$(document).ready(function(){
     $("#imageJcInfo img" ).aeImageResize({width: 160, height: 120 });
    $("#imageJcInfo img").popImage({"tagName":"src"});
});

</script>

</script>
</head>
<body>

 <div id="imageJcInfo" style="text-align:left;" >

       <img src="'../images/a.jpg'" width="160" height="120" autosize="yes"/>

  </div>

</body>
</html>