问题
I cannot get animated gif to display before flash movie loads. 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.
回答1:
You don't need javascript for this.
Simply wrap and flash file in a div and give it a background image:
div {background:url(loading.gif) no-repeat center center;}
来源:https://stackoverflow.com/questions/8449399/how-to-load-animated-gif-before-flash-load