[Javascript] flash on mac and javascript
Steven Chipman
sgchipman at gmail.com
Thu Apr 6 20:12:11 CDT 2006
On 4/6/06, Schalk Neethling <schalk at volume4.com> wrote:
> 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.
You'll need to set your attributes on the embed before appending it to
the container element for it to work in Safari:
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);
}
The same goes for script elements created in the same way.
--
steve
slayeroffice.com
More information about the Javascript
mailing list