Image

Imageromeoa wrote in Imagejavascript

Hiya,

I am new to Javascript and I need help adding a .swf file to a javascript array file. It works fine for .jpg files, but not at all for .swf files. Below is a snippet of the array. I believe I need a to create an external js file to make this run, but I am stuck on what code to write.

var images = new Array();

//OTHER
images.push("images/images_portfolio/misc/mobilemedic.jpg");
images.push("images/images_portfolio/misc/showDVD2008.jpg");
images.push("images/images_portfolio/misc/sjm_dvd.jpg");
images.push("images/images_portfolio/misc/gear6.swf")
images.push("images/images_portfolio/misc/compellent.swf");

Thanks in advance.