2015-10-16 101 views
-3

我想找到解決方案,我如何使頁面加載10秒後頁面上出現文本?例如,文本..文本出現延遲

I didn't do anything, because I think it's about javascript here... 

例子:事情是這樣的:http://postimg.org/image/duogy83zd/

+1

我不知道什麼你甚至談論。這個問題無論如何都沒有幫助。 – Coderchu

+0

大聲笑。我想要這樣的東西... http://postimg.org/image/duogy83zd/ – razvee

+0

我不知道什麼是這麼難理解... – razvee

回答

0

嘗試下面的代碼,這是你所需要的:

<html> 

<head> 
<script> 
window.onload = function(){ 
    var theDelay = 10; 
    var timer = setTimeout("showText()",theDelay*1000) 
} 
function showText(){ 
    document.getElementById("delayedText").style.visibility = "visible"; 
} 
</script> 
</head> 
<body> 
<div id="delayedText" style="visibility:hidden"> 
I didn't do anything, because I think it's about javascript here... 
</div> 
</body> 
</html> 
+0

非常感謝,男人。 – razvee