flash or object tags and z-index


/ Published in: HTML
Save to your folder(s)



Copy this code and paste it in your HTML
  1. 1. Wrap your flash content in a div
  2. 2. Add <param name="wmode" value="transparent"> to your object tag
  3. 3. Set wmode="transparent" in the embed tag
  4. 4. Use css to set the position and z-index for your div (don't set negative z-index values as it will make your flash disappear)
  5.  
  6. :c:
  7.  
  8. #flash {
  9. position: relative; /*or absolute*/
  10. z-index: 0;
  11. }
  12.  
  13. :x:
  14.  
  15. <div id="flash">
  16. <object .... >
  17. <param name="wmode" value="transparent">
  18. <embed .... wmode="transparent">
  19. </div>
  20.  
  21. And that�s it!

URL: http://manisheriar.com/blog/flash_objects_and_z_index

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.