2011-02-10 65 views
0

我想將div放入我的intex.htm文件(已經建好的站點)放置在一個.swf文件中,該文件將覆蓋整個屏幕,幾秒鐘後,動畫頁面將會消失,並且htm頁面將會出現。我不想製作不同的htm文件,既不在閃存上放置按鈕(即點擊...)。我只是想在幾秒鐘後,閃光燈結束後,閃光燈將消失,頁面將出現。.swf轉換爲html文件。 5秒後會消失,這樣就會出現HTML

+0

這是偉大的。現在......這個問題是什麼? – weltraumpirat 2011-02-10 16:39:01

回答

1

您可以使用jQuery ...

<html> 
<head> 
... 
<script src="http://code.jquery.com/jquery-1.5.2.min.js"></script> 
<script> 
    $(document).ready(function(){ 
    var flash_time = 5000;//in ms 
    $('#flash').delay(flash_time).hide(); 
    $('#cont').delay(flash_time).show(); 
    }); 
</script> 
</head> 
<body> 
<div id='cont' style='display:none;'> 
    ...content... 
</div> 
<div id='flash' style='width:100%;height:100%;'> 
    ...embed... 
</div> 
</body> 
</html>