[Javascript] how to dynamically load flash object

Flávio Gomes flavio at economisa.com.br
Tue Nov 14 10:02:01 CST 2006


Check this website and the ufo.js library for a working and compatible 
version

http://charges.uol.com.br/


Flávio Gomes escreveu:

> <object TYPE="application/x-shockwave-flash" WIDTH="600" HEIGHT="600" 
> id="oI">
>  <param name="movie" value="2.swf">
> </object>
>
> Are these enough parameters to run a flash?
>
>
>
> suresh kumar escreveu:
>
>> Hi to all ,
>>             Any one help me to solve this problem.i want to display 
>> the flash(.swf file) using <object> tag dynamically.Right now the 
>> flash image  is not getting diplayed but i able to see the background 
>> of the swf file.
>>  
>>  here is my code.
>>  
>> myspan=document.getElementById('my_span');
>> oImga = document.createElement('OBJECT');  // Create dynamically 
>> object tag
>> oImga.setAttribute('TYPE' , "application/x-shockwave-flash");
>> oImga.setAttribute('WIDTH' , "600");
>> oImga.setAttribute('HEIGHT' , "600");
>> oImga.setAttribute('id',"oI"); // Give id to it
>> prm=document.createElement('PARAM');  // Create dynamically object tag
>> prm.setAttribute('NAME' , "MOVIE");
>> prm.setAttribute('VALUE' , "2.swf");  //source file
>> oImga.appendChild(prm);
>> myspan.appendChild(oImga);
>>  
>>  
>> //display area to display flash file
>> <div id="my_span" 
>> style="position:absolute;width:600;height:600;z-index:2;visibility:visible;">
>>  
>>            thanxs for reply
>>
>> ------------------------------------------------------------------------
>> Find out what India is talking about on - Yahoo! Answers India 
>> <http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/>
>> Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 
>> 8. Get it NOW 
>> <http://us.rd.yahoo.com/mail/in/messengertagline/*http://in.messenger.yahoo.com> 
>>
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>Javascript mailing list
>>Javascript at LaTech.edu
>>https://lists.LaTech.edu/mailman/listinfo/javascript
>>  
>>
>
>-- 
>Flavio Gomes
>flavio at economisa.com.br
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
>  
>

-- 
Flavio Gomes
flavio at economisa.com.br




More information about the Javascript mailing list