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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Works in static HTML but not from a script

Status
Not open for further replies.

buddyrich2

Technical User
Apr 12, 2006
87
US
I have a .swf that works fine in a static HTML page but when I create the HTML page from a script, which I need to do, it doesn't work.

I reference the .swf from the same domain where the script resides. Are there any special tags I need to be using or does anyone else seem to know what could be wrong?

Thanks.
 
I'm writing it with javascript:

document.write('<TABLE cellpadding="0" cellspacing="0" border="0" width="100%" BGCOLOR="#'+color+'"><tr><td ALIGN="LEFT">');

document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" WIDTH="'+flashwidth+'" HEIGHT="'+flashheight+'" id="logo" ALIGN="">');
document.write('<PARAM NAME=movie VALUE=" />');
document.write('<PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#'+color+'> ');
document.write('<EMBED src=" quality=high bgcolor=#'+color+' WIDTH="'+flashwidth+'" HEIGHT="'+flashheight+'" NAME="logo" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="document.write('</EMBED>');
document.write('</OBJECT>');

document.write('</td></tr></table>'); }
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top