By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,401 Members | 793 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,401 IT Pros & Developers. It's quick & easy.

Problem with flash files in Firefox

P: 3
Hello ,

I have a DIV part in the main page of my web site. Using javascript code I fill the InnerHtml of this DIV.

Everything is fine with IE but there is a big problem with firefox.
If you check it with Firefox: http://www.adsontime.com/index.asp
you can see what I mean. Wait some seconds for flash file to be opened.


The code is in the following;

in index.asp;

<div width=325 height=230 align='center' id="id_pc"><img src="/images/first.jpg"></div>

in a javascript function of my .js file;

src += "<table border=0 width=325 height=230 bordercolor=#000000 cellspacing=0 cellpadding=0>";
src += "<tr><td>";
src += "<div id='transparent1' style='position:absolute; width:100%; height:100%; z-index:0;'>";
src += "<embed wmode=transparent src='/test/files/"+time_str+"."+file_type+"' quality=high"
src += "pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' "
src += "type='application/x-shockwave-flash' width=100% height=100% scale='noborder' align='top'> </embed>"
src += "</div>";
src += "<div id='transparent' style='position:absolute; width:100%; height:100%; z-index:200;'>";
src += "<a href='javascript:GoURL(time_str);'><img border='0' src='http://www.adsontime.com/samples/transparent.gif' width='100%' height='100%'></a>"
src += "</div>";
src += "</td></tr></table>";
document.getElementById('id_pc').innerHTML = src;


Do you know any solution?

Thanks.
Oct 12 '06 #1
Share this Question
Share on Google+
5 Replies


drhowarddrfine
Expert 5K+
P: 7,435
Didn't have time to pay much attention. The playoffs are on. But without a proper doctype, you will never get IE to perform like a modern browser. Yes, I know you said it works in IE but you designed it using IE, correct? Bad move. Never use IE for initial designs. Add this doctype to your first line and see where we stand:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
Oct 13 '06 #2

P: 3
Thank you very much for your help and advise.

Actually I have solved my problem.
The explanation is here;

http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_22022684.html

Take Care..
Oct 13 '06 #3

drhowarddrfine
Expert 5K+
P: 7,435
You may have solved the problem for the moment but I'll say again, you will never get IE to attempt to perform like a modern browser without a proper doctype and you don't have one. More problems are around the corner.
Oct 13 '06 #4

P: 3
drhowarddrfine,
Thank you very much for your advise, but the flash files can not be seen in the page after this modification.
So I deleted this doctype declaration.

Do you suggest me any other doctype for that?

Regards,
Oct 14 '06 #5

drhowarddrfine
Expert 5K+
P: 7,435
All new pages should always use the strict doctype. I don't know enough about flash files to help with this.
Oct 14 '06 #6

Post your reply

Sign in to post your reply or Sign up for a free account.