flash not loading

Discussion in 'Javascript' started by windandwaves, Feb 28, 2006.

  1. windandwaves

    windandwaves Guest

    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>
    */
     
    windandwaves, Feb 28, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bernie
    Replies:
    0
    Views:
    625
    Bernie
    Sep 5, 2004
  2. George Davis
    Replies:
    1
    Views:
    1,074
    WebcastMaker
    Aug 29, 2004
  3. Jim Higson
    Replies:
    1
    Views:
    539
    Jim Higson
    Sep 21, 2004
  4. Replies:
    8
    Views:
    23,588
    SABOND21
    Feb 9, 2012
  5. MN
    Replies:
    3
    Views:
    179
    Bob Barrows [MVP]
    Feb 16, 2005
Loading...

Share This Page