[Javascript] flash on mac and javascript

Schalk Neethling schalk at volume4.com
Thu Apr 6 19:43:24 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
emotionalize.conceptualize.visualize.realize
Landlines
Tel: +27125468436
US Tel: (440) 499-5484
Fax: +27125468436
Web
email:schalk at volume4.com
Global: www.volume4.com
Messenger
Yahoo!: v_olume4
AOL: v0lume4
MSN: volume4_ at hotmail.com

We support OpenSource
Get Firefox!- The browser reloaded - http://www.mozilla.org/products/firefox/
 
The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error, please contact the sender and please delete all traces of this material from all devices.





More information about the Javascript mailing list