开发者

.swf into a html file. 5secs later will dissapear so that the html will appear

开发者 https://www.devze.com 2023-02-09 14:28 出处:网络
I want to make div into my intex.htm file (already built site) to place in a .swf fi开发者_StackOverflow社区le that will cover the whole screen, and a few seconds later the animated page will disapear

I want to make div into my intex.htm file (already built site) to place in a .swf fi开发者_StackOverflow社区le that will cover the whole screen, and a few seconds later the animated page will disapear and the htm page will appear. I don't want to make different htm file, neither put a button on flash(ie on click...). I just want after a few seconds and after the flash has ended, the flash will go away and the page will appear.


You can use 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>
0

精彩评论

暂无评论...
验证码 换一张
取 消