/ Published in: JavaScript
Add Flash Object
Expand |
Embed | Plain Text
function addFlashObj(node, swf) { var o = document.createElement('object'); node.appendChild(o); var p = document.createElement('param'); p.setAttribute('name', 'movie'); p.setAttribute('value', swf); o.appendChild(p); o.setAttribute('data', swf); o.setAttribute('type', 'application/x-shockwave-flash'); } addFlashObj(document.body, 'sample.swf');
You need to login to post a comment.
