var d = document.getElementById("box");
function fadeOut(r, s) {
if (!this instanceof Element) return false;
this.style.opacity = ".90";
var opacity = this.style.opacity;
var t = setInterval(function() {
if (!r) r = 500;
opacity = (opacity) - s;
if (opacity == ".0") return;
}, r); };
fadeOut.apply(d, [100, 5]);
There are many things wrong with this code.
首先,社会保障局的财产正在扼杀,因此,你的不透明补充线应当是:
opacity = parseInt(opacity) - 0.05 + ;
平均率变成了星号,然后又增加了负0.05,然后用<代码>+ back。
其次,if (!r) r = 500;
应当从匿名职能外界定。
应:
var d = document.getElementById("box");
function fadeOut(fadeScaler, hertz) {
if (!this instanceof Element) return false;
hertz = (!hertz) ? 60 : hertz; // Approx 60 hertz refresh rate
var opacity = this.style.opacity
opacity = ".9";
var t = setInterval(
function() {
opacity = parseInt(opacity) - fadeScaler + ;
if (parseInt(opacity) <= 0)
clearInterval(t);
},
Math.floor(1000 / hertz)); // 1000 miliseconds / hertz = refresh rate
};
fadeOut.apply(d, [.05]);
更加注意你的法典的成文和风格。 一位立法者是智能代码。
此外,在《欧洲常规武装力量法》中,“不透明”相当于:
this.filters.alpha.opacity=100
页: 1