Load flash via javascript
I was thinking of using document.write('<embed src="copy.swf" pluginspage="http://www.macromedia.com/shockwave/download/" width="1" height="1" name="copy"><\/embed>');
Show message
Join up (it's free!) whether you're just starting out or you're crazy advanced. Get tips from people who know what they're talking about, without being treated like the playground smelly kid. Because seriously, your school classes didn't teach you anything you wanted to know.

Posted 11 June 2010 - 09:05 PM (#1)
Posted 11 June 2010 - 09:35 PM (#2)
var flash = document.createElement('embed');
flash.src = 'copy.swf';
flash.width = '1';
flash.height = '1';
flash.name = 'copy';
// To add it inside a container:
document.getElementById('container').appendChild(flash);
// Or to add it to the body at the very bottom:
//document.body.appendChild(flash);

Posted 13 June 2010 - 03:05 PM (#4)
Daniel15, on 11 June 2010 - 09:35 PM, said:
var flash = document.createElement('embed');
flash.src = 'copy.swf';
flash.width = '1';
flash.height = '1';
flash.name = 'copy';
// To add it inside a container:
document.getElementById('container').appendChild(flash);
// Or to add it to the body at the very bottom:
//document.body.appendChild(flash);
olie122333, on 12 June 2010 - 01:00 AM, said:
Posted 30 May 2012 - 12:23 PM (#5)
Daniel15, on 11 June 2010 - 09:35 PM, said:
var flash = document.createElement('embed');
flash.src = 'copy.swf';
flash.width = '1';
flash.height = '1';
flash.name = 'copy';
// To add it inside a container:
document.getElementById('container').appendChild(flash);
// Or to add it to the body at the very bottom:
//document.body.appendChild(flash);