0

我想这样做,当你刚刚输入index.php时,它会出现一个文本10秒,然后它会隐藏,怎么做?并像慢慢地一样隐藏我有jquery

4

2 回答 2

3

像这样?

<p class="text">My text</p>

<script>
window.setTimeout(function() {
    $('.text').fadeOut();
}, 10000);
</script>
于 2010-02-13T19:57:34.377 回答
3
$(document).ready(function() {

    var mySectionToFade = $('#myFadingSection');

    setTimeout(function(){ mySectionToFade.fadeOut() }, 10000);

})
于 2010-02-13T20:01:32.333 回答