473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem with flash files in Firefox

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
5 4096
drhowarddrfine
7,435 Expert 4TB
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
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
7,435 Expert 4TB
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
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
7,435 Expert 4TB
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

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

Similar topics

6
by: Cliff R. | last post by:
Hi, I use a handy little Javascript Flash detection script on a number of sites (copied below). Usually works great, but I just started trying Firefox and it's not working. A few browsers are...
1
by: chaitatp | last post by:
Hi friends, I've got a problem about inserting Flash in iframe in Firefox. The codes are: ---- test.html ---- <html> <head> <script type="text/javascript"> function doBodyOnLoad()
2
by: Andy | last post by:
Hi hopefully someone has come accross this issue, as it's doing my head in. We have a flash (.SWF file) banner to display, which does so fine in IE, but in firefox only seems to be about 1/3 size...
11
by: emailus | last post by:
I am webmaster for the domain <www.alpha1.org.au>. Not being an expert in html, I take advantage of my domain Registrant's web building tool, 'Instant Website'. This tool is provided as part of...
1
by: terrybali | last post by:
Hi Guys I am new to forum and nontechnical. My site has several large flash files. I am looking for someone who can help us solve two problems. Willing to pay whatever normal rate is for this...
1
by: tarepanda | last post by:
Hi, I'm really clueless on where my code goes wrong in Firefox. Mine is version 2.0.0.6. I have a signed applet that allows for recording, playing back and saving of audio files. The interface...
2
by: lionbarrage | last post by:
Hi all, I was just wondering if anyone knows how to grab an image from a flv or a swf when a user uploads a file? Any help would be appreciated!
2
dream party
by: dream party | last post by:
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.