开发者

Animated(.swf) image is the top layer of the webpage, Why?

I am trying to use an .swf animated image on my Home page. And its acting weird. All the popups show underneath the animated image. I dont understand why? How can i make it stick to the page , and not be on top of popups,开发者_JS百科 etc. This is done using html, javascript, asp.net.

This is how i have used the animated image on the webpage. I hope i am clear

 <div id="divmarquee" runat="server" style="text-align:center">
  <object width="475px" height="75px">
     <embed src="merchant_images/The_Marquee_Deal.swf" type="application/x-shockwave-flash" width="475px" height="75px"></embed>
     </object> 
  </div>

Thanks in advance!!


Flash likes to overlap everything on a web page by default. You need to include these attributes in your embed tag to ensure that it behaves properly:

style="z-index: 0" wmode="transparent"


Most likley it is caused by "Windowed" mode set in the flash itself by default - http://www.adobe.com/devnet/flash/articles/concept_window_mode.html for defineition, for more detail - http://www.communitymx.com/content/article.cfm?cid=E5141. You can try to set "wmode" to overrride the default.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜