}
// o.alt = img.width + “x” + img.height;
} else {
if (img.height > h) {
o.height = h;
o.width = (img.width * h) / img.height;
} else {
o.width = img.width;
o.height = img.height;
}
//o.alt = img.width + “x” + img.height;
}
}
}
</script>
<script type=”text/javascript” src=”js/jquery.album.js?v=1409654123″></script>
</body>
</html>
以上就是本文分享给大家的实例代码了,希望对大家学习jQuery能够有所帮助。










