| <script type="text/javascript"> |
| function SetSrc(src) { |
| var plugin = document.getElementById('plugin'); |
| plugin.src = src; |
| } |
| function SetSize(w, h) { |
| var plugin = document.getElementById('plugin'); |
| plugin.width = w; |
| plugin.height = h; |
| } |
| function SetTitle(str) { |
| document.title = str; |
| } |
| document.title = 'embedder'; |
| </script> |
| |
| <object id="plugin" |
| tabindex="0" |
| type="application/browser-plugin" |
| width="640" |
| height="480" |
| border="0px"></object> |
| <script type="text/javascript"> |
| var plugin = document.getElementById('plugin'); |
| plugin.addEventListener('-internal-instanceid-allocated', function(e) { |
| var detail = e.detail ? JSON.parse(e.detail) : {}; |
| plugin['-internal-attach'](detail.windowId, {}); |
| }); |
| </script> |