📄 item_detail_view_img.js
字号:
function flashShowImg() { flashLoaded = true; try {document.getElementById('ZoomInLink').href=l2;}catch (e){}}function flashShowImgFinished() { flashShowFinished = true; flashLoaded = true; var flashArea = document.getElementById("FlashArea"); var jsArea = document.getElementById("JsArea"); flashArea.style.display = ""; jsArea.style.display = "none"; try {document.getElementById('ZoomInLink').href=l2;}catch (e){}}var _img = null;function jsShowImg() { var flashArea = document.getElementById("FlashArea"); var jsArea = document.getElementById("JsArea"); flashArea.style.display = "none"; jsArea.style.display = ""; _img = new Image(); _img.src = picServer + "/" + decode(imageUrl); document.getElementById('ZoomInLink').href = l1; checkJsLoadFinished(1);}function decode(url) { var newUrl = ""; for (var i = 0; i < url.length; ++i) { var code = url.charCodeAt(i); newUrl += String.fromCharCode(code ^ (i % 5)); } return newUrl;}function checkJsLoadFinished(count) { if (count > 1000) { document.getElementById('DownloadPicInfo').innerHTML = '加载图片超时'; return; } var state = ''; if (document.all) state = _img.readyState; else state = _img.complete ? 'complete' : ''; if(state!='complete') { window.setTimeout("checkJsLoadFinished(" + (count + 1) + ")",50); return; } var MaxW = 250; var MaxH = 250; var dW=_img.width; var dH=_img.height; if(dW>MaxW || dH>MaxH) { a=dW/MaxW; b=dH/MaxH;if(b>a){ a=b; } dW=dW/a; dH=dH/a; } if(dW > 0 && dH > 0) { _img.width=dW; _img.height=dH; } var jsArea = document.getElementById("JsArea"); var childs = jsArea.childNodes; for (var i = 0; i < childs.length; ++i) jsArea.removeChild(childs[i]); _img.style.paddingTop = (250-_img.height)/2; var a = document.createElement('a'); a.target = '_blank'; a.href=l1; a.appendChild(_img); jsArea.appendChild(a);}function recheckFlashLoadStat() { if (flashShowFinished) return; jsShowImg();}function delayLoadImg() { if (!flashLoaded) jsShowImg(); else window.setTimeout("recheckFlashLoadStat()", 30000);}function FlashShowImageObject_DoFSCommand(command, args) { if (command == 'flashShowImg') flashShowImg(); else if (command == 'flashShowImgFinished') flashShowImgFinished(); else if (command == 'jsShowImg') jsShowImg();}document.write('<iframe src="about:blank" frameborder="0" width="1" height="1" name="commandFrame"></iframe>');window.frames['commandFrame'].document.write('<'+'script type="text/javascript">function commandDelegate(command){parent.FlashShowImageObject_DoFSCommand(command,"");}<'+'/script>');window.setTimeout("delayLoadImg()", 3000);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -