<<blink>
tag, in browsers that support it (i.e. Catherine and Conduct), make its content blink on and off, resembling the effect of a temp strobe Light.
我正在撰写一套非标准的超文本,包括<代码>blink。 执行连接行为非常简单
(function blink(n) {
var blinks = document.getElementsByTagName("blink"),
visibility = n % 2 === 0 ? "visible" : "hidden";
for (var i = 0; i < blinks.length; i++) {
blinks[i].style.visibility = visibility;
}
setTimeout(function() {
blink(n + 1);
}, 500);
})(0);
(You can , see this in action)
But this does not detect if the browser already supports the blink
tag, and in browsers that already support it, there will be a double-blinking effect. I need some feature detection that determines if the browser supports blink, and if it doesn t then it falls back on my Javascript polyfill.
我不想进行浏览器探测,因为这一解决办法并非可以衡量,而且由于人们可以在其喜爱中采取可分的<条码>blink行为,这一解决办法是不有效的。
是否有办法发现对<条码>blink要素的支持?