474 imgsinlog[j].onclick = function() {window.open(this.src);}
475 if (navigator.userAgent.toLowerCase().indexOf('ie') > -1) {
476 imgsinlog[j].title = '您可以用鼠标中键或者使用Ctrl+鼠标滚轮缩放图片,点击图片可在新窗口打开';
477 imgsinlog[j].onmousewheel = function(){return Sams_media.imagecontrol(this);};
478 }
479 else
480 {
481 imgsinlog[j].title = '点击图片可在新窗口打开';
482 }
483 }
484 }
485 },
486 imagecontrol : function(obj){
487 var zoom=parseInt(obj.style.zoom, 10)||100;zoom+=event.wheelDelta/12;
488 if (zoom>0) obj.style.zoom=zoom+'%';
489 return false;
490 },
491
492 /**//* 如果图像出现下载不了等异常,显示的错误提示图片
493 @errimgpath 显示错误提示的图像路径
494 */
495 ImagesError : function(errimgpath){
496 var imglist = document.getElementsByTagName('img');
497 for(j=0; j<imglist.length; j++) {
498 imglist[j].onerror = function(){
499 this.src = errimgpath;
500 }
501 }
502 },










