I am attempting to implement SWFObject in to an Enterprise CMS. In order to implement SWFObject efficiently I would like to encapsulate the .js file in to a single function. Can this be done? How would I go about doing this? Any pointers appreciated. Thanks in advance.
I have been asked to put the swfobject_source.js file in to a single function so that it can then be included in the single .js file that contains all the other javaScript functions implemented within the CMS. I have be told this would be the most efficient method of implementation for a rather large site.
OK! so if the swfobject.js is in another file - will it not run everytime the file is called? Not all the pages within the site contain Flash. I would like to call the swfobject.js only on the pages which contain Flash obviously. Thanks