如何使页面上的所有文本闪烁不同的颜色? [英] How do I make all text on a page flash different colors?
本文介绍了如何使页面上的所有文本闪烁不同的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以,我知道怎么做才能使整个身体的背景闪烁颜色。但是我如何制作它以使页面上的所有文字都闪烁颜色?
这里 [ ^ ]是背景代码。
如果有人可以提供帮助,那就太好了。 :)
So, I know how to make it so the background of the whole body flashes color. But how do I make it so all the text on the page flashes color?
Here[^] is the background code.
If anyone could help, that would be great. :)
推荐答案
尝试
Try
(' 。divLocal')。each(function(){
var elem =
('.divLocal').each(function() { var elem =
( this );
setInterval(function(){
if (elem.css(' visibility')== ' hidden'){
elem.css(' visibility',' visible');
} else {
elem.css(' visibility',' hi dden'跨度>);
elem.css(' color', ' red');
}
}, 500 );
});
(this); setInterval(function() { if (elem.css('visibility') == 'hidden') { elem.css('visibility', 'visible'); } else { elem.css('visibility', 'hidden'); elem.css('color', 'red'); } }, 500); });
这会使文字闪烁。只需随意更改颜色即可产生多色效果。
This will make the text flash. Just change the color randomly to give a multi-color effect.
这篇关于如何使页面上的所有文本闪烁不同的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文