[Javascript] how to dynamically load flash object
Flávio Gomes
flavio at economisa.com.br
Tue Nov 14 09:45:20 CST 2006
<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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20061114/4b2b966a/attachment.htm>
More information about the Javascript
mailing list