Embedding Flash in Google Wave

Oh hi! So you want to embed Flash in a Google Wave, huh? Well you can!
 
First add this HTML gadget via ‘add gadget via URL’: http://wave-ide.appspot.com/html.xml
Then, click ‘Edit’ on the gadget, and paste your embed code. Now click ‘view’ to see the code rendered. The Flash movie will be embedded in a crappy gray frame, but hey, you got embedded Flash in your Wave! Yay, right?
WRONG! Gray crap is crap! So, let’s add some javascript to remove the frame. Below your Flash embed code, paste the following script:

<script type=text/javascript>
var div = parent.document.getElementById('toolbarPane');
div.style.display = 'none';
div.parentNode.parentNode.style.backgroundColor = 'transparent';
</script>

And there you have it! Clean, borderless Flash in a Wave.
This entry was posted in Geen categorie. Bookmark the permalink.

Leave a comment