PDA

View Full Version : Flash replacement Javascript for Safari/ie:mac


mitcho
08-17-2007, 03:06 AM
Hi guys.

I put a Flash based resume online some time ago here: www.mitchellpage.com.au/resume (.com/resume)

It appears to work fine, however in Safari on Mac and IE on Mac, I have been getting complaints that nothing loads. Yet this seems to be temperamental. because sometimes it Does work in safari and sometimes it does not.

I suspect its a bug with the Flash replacement javascript I am using to avoid the IE activeX problem.

Can anyone see any problems with my Flash fix js file that would be causing it to sometimes work and sometimes not work on Macs? Thanks

function writeFlash(id) {
document.getElementById(id).innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='640' height='480' id='preloader' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='preloader.swf?serverType=local' /><param name='quality' value='high' /><param name='bgcolor' value='#ffffff' /><embed src='preloader.swf?serverType=local' quality='high' bgcolor='#ffffff' width='640' height='480' name='preloader' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>";
}

CyanBlue
08-17-2007, 01:50 PM
Why not use SWFObject??? I know that works well on Mac...
http://blog.deconcept.com/swfobject

mitcho
08-18-2007, 04:19 AM
Thanks.

I upgraded to SWFobject, which looks very good - much better than the one i was using.

I have uploaded it here http://www.mitchellpage.com.au/resume/ but i do not have a Mac to check.

Hoping someone could check for working in ie:mac and safari:mac

Thanks