Tuesday, March 15, 2011

Blink text in jQuery

Blinking text in jQuery

< div id=""msg" > your message here< / div >
< script language = " javascript " >
    function setFade() {
        $( "#msg").fadeOut(1000, function () {
            $("#msg").fadeIn();
        });
        }
        setInterval("setFade();",100);
< / script >

3 comments:

  1. I think this is easier one

    < script language = " javascript " >
    setInterval(function(){
    $( "#msg").toggle();
    },100);
    < / script >

    ReplyDelete