How to load the colored text dynamically and fade out in jquery
I want to display some text with red 开发者_如何学运维background color and white font color in top center of screen. and That should fade away after 6 seconds. any idea how to do it in jquery
may be this fiddle can help
http://jsfiddle.net/ASRKR/1/
You can use fadeout effect in JQuery, just set duration time in params. http://api.jquery.com/fadeOut/
ps but remember you set time in milliseconds.
If you want to change the color of background too, you should include this .js file in your page too.
精彩评论