Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2003
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question insert flash using dom methods

    Hi,

    I am trying to insert a swf movie using dom methods. The following is what I have. However, the movie does not start loading. Does anyone know how to make the movie load?

    var xmlIc=document.createElement('object');
    xmlIc.setAttribute('type','application/x-shockwave-flash');
    xmlIc.setAttribute('data', '');
    xmlIc.data=tagTitle1.firstChild.nodeValue;
    xmlIc.setAttribute('width', '');
    xmlIc.width="550";
    xmlIc.setAttribute('height','');
    xmlIc.height="400";

    var paramIc=document.createElement('param');
    paramIc.setAttribute('name','');
    paramIc.name="movie";
    paramIc.setAttribute('value','');
    paramIc.value=tagTitle1.firstChild.nodeValue;
    xmlIc.appendChild(paramIc);
    bb.appendChild(xmlIc);
    //bb is an HTMLDivElement

    thanks

    violet

  • #2
    New to the CF scene
    Join Date
    Jun 2003
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I got it with adding two lines of code.

    tt=document.getElementById('interactive');
    tt.LoadMovie(0, tagTitle1.firstChild.nodeValue);

    yah!!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •