| 21008 | |
| 21009 | //图片窗口 |
| 21010 | function ImgWindowC(img, data, actual, initPos, preview){ |
| 21011 | this.loaded = false; |
| 21012 | this.img = img; |
| 21013 | this.actual = !!actual; |
| 21014 | this.src = data?data.src:img.src; |
| 21015 | this.data = data || findPic(img); |
| 21016 | this.initPos = initPos || false; |
| 21017 | this.preview = !!preview; |
| 21018 | this.isImg = this.img.nodeName.toUpperCase() == 'IMG'; |
| 21019 | this.imgSizeBytes = null; |
| 21020 | this.imgSizeText = ""; |
| 21021 | this.init(); |
| 21022 | if (data && this.isImg) { |
| 21023 | this.img.src = location.protocol == "https" ? data.src.replace(/^http:/,"https:") : data.src; |
| 21024 | } |
| 21025 | }; |
| 21026 | |
| 21027 | ImgWindowC.all=[];//所有的窗口对象 |
| 21028 | ImgWindowC.overlayer=null; |