Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-12-2003, 08:31 PM   PM User | #1
violetleaf
New to the CF scene

 
Join Date: Jun 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
violetleaf is an unknown quantity at this point
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
violetleaf is offline   Reply With Quote
Old 06-12-2003, 09:29 PM   PM User | #2
violetleaf
New to the CF scene

 
Join Date: Jun 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
violetleaf is an unknown quantity at this point
I got it with adding two lines of code.

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

yah!!
violetleaf is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:01 PM.


Advertisement
Log in to turn off these ads.