简体   繁体   English

单击(javascript)导航标签加载SWF文件

[英]Load swf file on click of (javascript)navigation label

I am trying to make a (heavy)swf file slideshow. 我正在尝试制作(沉重)swf文件幻灯片。 for that i have created navigation labels at the bottom of the html page using javascript.And my my 'aim' is when i 'll click on any navigation label,particular swf file will be loaded. 为此,我使用javascript在html页面底部创建了导航标签。我的“目标”是当我单击任何导航标签时,将加载特定的swf文件。 Here i'm getting problem is , when i open that html file all swf files are loaded at the same time. 在这里,我遇到的问题是,当我打开该html文件时,同时加载了所有swf文件。 so when i click on nxt label part of swf only displays. 因此,当我单击nxt标签时,仅显示swf的一部分。

so what is the soln to this? 那到底是什么呢?

is there any way that when i'll click on navigation label only that time particular swf file will played and when i'll go to nxt label, previous label shoud have to unload. 有什么方法可以让我仅在该时间点上播放特定的swf文件时单击导航标签,而当我转到nxt标签时,必须卸载以前的标签。

我认为您应该动态加载SWF文件,而不是预先加载,在显示元素时立即更改该元素的src属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM