code_junkie

How can I place a html div over the Google Earth plugin Involves wmode, I imagine

Nov 14th, 2011
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. document.getElementById('flashDiv').setAttribute('wmode', 'opaque');
  2.  
  3. <div id="parent">
  4. <div id="sibling"></div>
  5. <embed id=”flash”><other script code></embed>
  6. </div>
  7.  
  8. //.parent may not need to be set to relative
  9. #parent { position: relative; }
  10. // the value on sibling1 just needs to be higher than .sibling2
  11. #sibling { position: relative; z-index: 20; }
  12. #flash { position: relative; z-index: 10; display:inline }
Add Comment
Please, Sign In to add comment