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.c om/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"><im g src="/images/first.jpg"></div>
in a javascript function of my .js file;
src += "<table border=0 width=325 height=230 bordercolor=#00 0000 cellspacing=0 cellpadding=0>" ;
src += "<tr><td>";
src += "<div id='transparent 1' style='position :absolute; width:100%; height:100%; z-index:0;'>";
src += "<embed wmode=transpare nt src='/test/files/"+time_str+"."+ file_type+"' quality=high"
src += "pluginspage='h ttp://www.macromedia. com/shockwave/download/index.cgi?P1_Pr od_Version=Shoc kwaveFlash' "
src += "type='applicat ion/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='javascrip t:GoURL(time_st r);'><img border='0' src='http://www.adsontime.c om/samples/transparent.gif ' width='100%' height='100%'></a>"
src += "</div>";
src += "</td></tr></table>";
document.getEle mentById('id_pc ').innerHTML = src;
Do you know any solution?
Thanks.
5 4109
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">
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..
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.
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,
All new pages should always use the strict doctype. I don't know enough about flash files to help with this.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 referenced in
the script so I presume that Firefox needs to be added somewhere --
does anyone know how I could update this to be supported by Firefox?
Thanks!
<SCRIPT TYPE="text/JavaScript">
|
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()
|
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 so looks tiny. Does anyone have
any ideas?
I've included the cut down code below...copy and paste where appropriate.
The web page has an embedded web control.
The Web control references an external javascript file rather than having
the...
|
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 the fee I pay for web hosting.
'Instant Website' provides the option of having your opening page as a
Flash Page, which you'll see if you visit <www.alpha1.org.au>. Well,
you'll see it if you visit from a Windows machine. For some reason,
when...
|
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 solution.
The problems are two fold.
| |
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 which contains record, stop, play and save buttons is done in Flash. So I use javascript for applet-Flash communication. Since I have no control over users' policy files, I wrapped scripts that require special permission in doPrivileged method....
|
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!
|
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 did not understand some parameters totally in the HTML tag. These days when I was surfing the Internet I have found some comprehensive introduction to these two tags. I read it and conclude it with my own words; I think it will be useful to us, so I...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |