[英]How to load animated gif before Flash load
I cannot get animated gif to display before flash movie loads. 在加载Flash电影之前,我无法显示动画gif。 I am using this script but does not seem to work.
我正在使用此脚本,但似乎无法正常工作。 I do not want to use a flash loader.
我不想使用闪存加载器。
<script type="text/javascript">
var image = new Image();
image.src = 'http://www.hmaimages.com/MN/flash_loader/loading.gif';
</script>
Any help be much appreciated. 任何帮助,不胜感激。
You don't need javascript for this. 您不需要javascript。
Simply wrap and flash file in a div
and give it a background image: 只需将文件包装并刷新到
div
然后为其提供背景图片:
div {background:url(loading.gif) no-repeat center center;}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.