weikeweixin/scripts/IEpng.js
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var EvPNG = {
ns: 'EvPNG',
imgSize: {},
createVmlNameSpace: function() {
if (document.namespaces && !document.namespaces[this.ns]) {
document.namespaces.add(this.ns, 'urn:schemas-microsoft-com:vml')
}
if (window.attachEvent) {
window.attachEvent('onbeforeunload',
function() {
EvPNG = null
})
}
},
createVmlStyleSheet: function() {
var a = document.createElement('style');
document.documentElement.firstChild.insertBefore(a, document.documentElement.firstChild.firstChild);
var b = a.styleSheet;
b.addRule(this.ns + '\\:*', '{behavior:url(#default#VML)}');
b.addRule(this.ns + '\\:shape', 'position:absolute;');
b.addRule('img.' + this.ns + '_sizeFinder', 'behavior:none; border:none; position:absolute; z-index:-1; top:-10000px; visibility:hidden;');
this.styleSheet = b
},
readPropertyChange: function() {
var a = event.srcElement;
if (event.propertyName.search('background') != -1 || event.propertyName.search('border') != -1) {
EvPNG.applyVML(a)
}
if (event.propertyName == 'style.display') {
var b = (a.currentStyle.display == 'none') ? 'none': 'block';
for (var v in a.vml) {
a.vml[v].shape.style.display = b
}
}
if (event.propertyName.search('filter') != -1) {
EvPNG.vmlOpacity(a)
}
},
vmlOpacity: function(a) {
if (a.currentStyle.filter.search('lpha') != -1) {
var b = a.currentStyle.filter;
b = parseInt(b.substring(b.lastIndexOf('=') + 1, b.lastIndexOf(')')), 10) / 100;
a.vml.color.shape.style.filter = a.currentStyle.filter;
a.vml.image.fill.opacity = b
}
},
handlePseudoHover: function(a) {
setTimeout(function() {
后面还有 310 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
