JOOMLA TRAINING | JOOMLA COURSES

^ Scroll to Top
joomla

Flash without 'click here to activate'

To get rid of that nasty "click here to activate" IE message, display the flash using javascript...

This should get you started and will also enable you to place flash within the template.

Firstly create a new js file:

   1. Create a text document - on a pc just right click on your desktop and choose text document
   2. Paste this code into the document
   3. Save the file as AC_RunActiveContent.js
   4. Place a copy of the file within your joomla in the folder /includes/js/
   5. Then tell your website to use this file.
      Within the head section of your template html (index.php) file  [i.e. between the <head> and </head> tags - add the following:
      <script type="text/javascript" src="/includes/js/AC_RunActiveContent.js" ></script>
   6. Then whenever you use flash - use this code: [X marks the spots for you to fill in]
      <script type="text/javascript" >
      AC_FL_RunContent('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0',
      'width','XX,'height','XX', 'src',XXXXXXX,'quality','high','name','XXXXXX','allowscriptaccess',
      'sameDomain','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','XXXXX');
      </script>

      If you need to troubleshoot further  try this link to the Adobe website

If you have a problem embedding flash in J!1.5? Click Here