javascript: pulse text using fade in and fade out?
<p>Hi i am trying to get a piece of text to fade in and out automatically without a click or hover method.</p>

<p>i'm not sure i can use an on page load function either because the text i want to fade in and out only appears after a user clicks to open another div on the page.? (I may be wrong?)</p>

<p>I am using this script but the text is static and not doing anything. Can anyone advise me where i'm going wrong? Thanks</p>

<pre><code>&lt;script&gt;
function cycle() {
    $('#morebutton-pics').fadeOut(1000, function() {
        $('#morebutton-pics').fadeIn(1000);
        cycle();
    });
}
$(document).click(function(){
    cycle();
});

&lt;/script&gt;
</code></pre>
