Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.
function loadSWFObjectFile(){
//create the script element
var soLink = document.createElement('script');
soLink.setAttribute('type', 'text/javascript');
soLink.setAttribute('src','/scripts/swfobject.js');
document.body.appendChild(soLink);
//check to see if script is ready to be used
if(soLink.readyState){ //For IE
soLink.onreadystatechange = function () {
if (soLink.readyState == 'complete') {
//invoke SWFObject
addSwf();
}
}
} else { //For Firefox and Safari
soLink.onload = function () {
//invoke SWFObject
addSwf();
}
}
}
//Use a separate function to declare the SO
//instance and pass your arguments/vars
function addSwf(){
var so = new SWFObject('sample.swf', 'sampleSwf', '550', '400', '7', '#FFFFFF');
so.addVariable("foo", "fighters");
so.write("flashcontent");
}
1 to 4 of 4