I recently noticed that SWF objects on our site are being downloaded twice, so I'm trying to determine if there's a more correct way to embed them. My current code is:
<object type="application/x-shockwave-flash" data="/movie.swf" width="635" height="350" class="ad">
<param name="movie" value="/movie.swf" />
<开发者_StackOverflow社区param value="high" name="quality">
<param value="#FFFFFF" name="bgcolor">
<param value="always" name="allowScriptAccess">
<param value="clickTAG=http://www.google.com/" name="FlashVars">
<param value="transparent" name="wmode">
</object>
Looking at some of the other questions and answers here on SO, it seems that this is the standard way of doing this, but having them downloaded twice is putting unnecessary strain on my servers. Is this the best way to embed a swf on our pages? If not, a better method would definitely be appreciated.
The web blog site Alistapart has a great article "Flash Satay" which goes into great detail on all the issues with different flash embedding techniques.
They conclude that your method is the simplest way to achieve it.
精彩评论