[Javascript] flash on the mac and javascript

Schalk schalk at volume4.com
Thu Apr 6 14:06:38 CDT 2006


Greetings All,

Please have a look at the following site: www.tele-court.com

The client says that the Flash header is not loading on Safari Mac. I 
use the following JavaScript to load the Flash file.

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

function header_wsound_object() {
    object_container = document.getElementById('top');
    var flash_object = document.createElement('object');
   
    object_container.appendChild(flash_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";
}
window.onload = header_wsound_object;
window.onload = header_wsound;

It works fine on Windows IE and Firefox. Any ideas? Thanks!

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





More information about the Javascript mailing list