[Javascript] flash on mac and javascript [again]

Schalk schalk at volume4.com
Wed Apr 12 09:55:35 CDT 2006


Greetings All,

Please have a look at the following page: www.tele-court.com. If you 
view this on a PC you will see that it has a Flash header however, when 
viewed on Mac using Safari the Flash header does not show. I use the 
following JavaScript to load the Flash header:

function header_wsound() {
   container = document.getElementById('top');
   var flash_embed = document.createElement('embed');
     flash_embed.src = "media/swf/header_wsound.swf";
   flash_embed.width = "686";
   flash_embed.height = "253";
     container.appendChild(flash_embed);
      }

function header_wsound_object() {
   object_container = document.getElementById('top');
   var flash_object = document.createElement('object');
     flash_object.width = "686";
   flash_object.height = "253";
   flash_object.classid= "clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6";
   flash_object.URL = "media/swf/header_wsound.swf";
   flash_object.uiMode = "none";
     object_container.appendChild(flash_object);
  }
window.onload = header_wsound_object;
window.onload = header_wsound;

Any ideas as to why this is not working on Mac/Safari? Thanks!

-- 
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Business.Solution.Developers





More information about the Javascript mailing list