Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The document.write( "embedde object") has NS error

Status
Not open for further replies.

CL328

MIS
May 19, 2002
25
0
0
US
Hi,

I have the following Javascript code:

If Netscape and Flash 6 installed Then
document.write(' <img src=&quot;&quot; width=&quot;1&quot; height=&quot;1&quot;>');
document.write('<object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,29,0&quot; width=&quot;450&quot; height=&quot;237&quot;>');
document.write(' <param name=&quot;movie&quot; value=&quot;principals.swf&quot;>');
document.write(' <param name=&quot;quality&quot; value=&quot;high&quot;>');
document.write(' <embed src=&quot;principals.swf&quot; quality=&quot;high&quot; pluginspage=&quot;http:\/\/ type=&quot;application\/x-shockwave-flash&quot; width=&quot;450&quot; height=&quot;237&quot;><\/embed>');
document.write('<\/object>');


THIS WORKS... However in Netscape, the rest of the html does not give room for the embedded flash object. The flash movie is on top of the text and other html code. In IE, it does not happen.

Any ideas on why this happens?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top