[Javascript] flash on mac and javascript [again]
Schalk
schalk at volume4.com
Thu Apr 13 17:08:56 CDT 2006
Greetings All,
I have changed my code now as follows:
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.type= "application/x-shockwave-flash";
flash_object.data = "media/swf/header_wsound.swf";
object_container.appendChild(flash_object);
}
window.onload = header_wsound_object;
It now works in Firefox, Netscape and Opera on Windows, not sure if it
now also works in Safari on the Mac (if someone can test and let me know
that would be great). My problem now is that it stopped working in IE. I
am guessing the reason is because I am not writing out this: <param
name="movie" value="media/swf/header_wsound.swf" />
My question here is, how would I need to amend my code above to write
this line as well using javascript? Thanks!
Nick Fitzsimons wrote:
> Schalk wrote:
>> 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:
>
> It doesn't work on Opera either (7.5/Mac, 8.54/Win), nor on IE/Mac (5.2).
>
> The first problem is with the lines:
>
> > window.onload = header_wsound_object;
> > window.onload = header_wsound;
> >
>
>
--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Business.Solution.Developers
More information about the Javascript
mailing list