长度和宽度自动缩放
高度自动
height:expression(document.180.clientWidth < 180? "180px": "auto" );
宽度限制
?target=\"_blank\">";
????? _html += element.outerHTML;
????? _html += "</a>";
????? element.outerHTML = _html;
??? }
? }
? /*
? if (height > _width) {
??? _maxpixel = _hieght;
??? _which = "h";
? }
? if (_which == "w") {
??? if (element.width > maxwidth) {
????? element.width = maxwidth;
????? element.removeAttribute("height");
??? }
? }
? else {
??? if (element.height > maxheight) {
????? element.height = maxheight;
????? element.removeAttribute("width");
??? }
? }*/
? function test() {
??? return zoomimg(element)
? }
function zoomimg(pic){
? var zoom=parseInt(pic.style.zoom,10)||100;
? zoom+=event.wheelDelta/12;
? if (zoom>0) pic.style.zoom=zoom+'%';
? return false;
}
</script>