使 Flash 影片自动加载

发布于 2024-07-13 17:01:01 字数 151 浏览 2 评论 0原文

我想在我的页面上嵌入一个 Flash 影片,但我需要它从一开始就自动加载,而不仅仅是当我通过页面到达它时。 我的意思是,我有一个很长的页面,而闪光灯大约在中间。 它播放带有声音的动画,我希望它能够自行启动,而不仅仅是当我向下滚动到它时。 这可能吗 ?

谢谢

I would like to embed a flash movie on my page but I would need it to autoload from the begining, not only when I reach it through page. I mean, I have a long page and the flash is about in the middle. It plays an animation with sound and I would like it to start itself, not only when I scroll down to it. Is this possible ?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

情仇皆在手 2024-07-20 17:01:01

Flash 影片在浏览器中加载后立即开始播放(默认情况下)。 只需确保您的 > /标记没有将 play 属性设置为 false 并且您的 Flash 影片没有 stop() 在第 1 帧上或阻止其播放的原因...

Flash movies begin playing immediately on loading in the browser (by default). Just make sure your <object> / <embed> tags don't have the play attribute set to false and that your Flash movie doesn't have a stop() on frame1 or something preventing it from playing...

狼性发作 2024-07-20 17:01:01

我遇到过一些情况,电影似乎无法持续自动播放。 我将这个快速的 javascript 函数放在一起,我将其称为 onload 以确保电影正在运行:

function LoadMovie(){
var movie = document.getElementById('flash_nav');
if(typeof movie.PercentLoaded() == "function")  //not every browser supports this so check first
 {
if(movie.PercentLoaded() < 100)
    {
        movie.LoadMovie(0, movie.data);    
    }
  }
 }

I have had some cases where the movie won't seem to consistently auto play. I threw together this quick javascript funciton which I call onload to make sure the movie is running:

function LoadMovie(){
var movie = document.getElementById('flash_nav');
if(typeof movie.PercentLoaded() == "function")  //not every browser supports this so check first
 {
if(movie.PercentLoaded() < 100)
    {
        movie.LoadMovie(0, movie.data);    
    }
  }
 }
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文