flash not loading

W

windandwaves

Please see http://www.matterhorn.co.nz/test/past.php, in IE, the flash is
not loading, in Firefox it is (usual story....)

I am wondering how I could get the flash to load in IE. The MakeFlash
function is called onload. I do this so that the other stuff loads first.

The JS code is as follows:


/*
Create a flash object
*/

function makeflash(name, width, height) {
//return; //to be taken out in final version!
if (!check()) return;
name = 'v/' + name + '.swf';
var box = new getObj("flasher");
if(box) {
var fla = createflashObject(name, width, height);
box.obj.appendChild(fla);
fla.appendChild(createParam('movie', name));
fla.appendChild(createParam('quality', 'high'));
fla.appendChild(createParam('bgcolor', '#000000'));
return box;
}
}

function createflashObject(name, width, height) {
var obj = document.createElement('object');
obj.setAttribute('type', 'application/x-shockwave-flash');
obj.setAttribute('data', name);
obj.setAttribute('width', width);
obj.setAttribute('height', height);
return obj;
}

function createParam(n, v) {
var el = document.createElement('param');
el.setAttribute('name', n);
el.setAttribute('value', v);
return el;
}

/* syntax for flash:
<object type="application/x-shockwave-flash" data="v/'.$f.'.swf"
width="875" height="215">
<param name="movie" value="v/'.$f.'.swf" />
<param name="bgcolor" value="#000" />
<a title="You must install the Flash Plugin for your Browser in order
to view this movie"
href="http://www.macromedia.com/shockwave/download/alternates/">get the
required <q>plug-in</q>: Macromedia Flash</a>
</object>
*/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top