473,396 Members | 1,804 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.

Flash benner too small in Firefox?

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 javascript inside the file, sue to a change in IE which would prompt a
security concern otherwise, so I'll now list the contents of the 3 files...

<CODE>

<The web form>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="banner.aspx.vb"
Inherits="Examples.banner"%>
<%@ Register TagPrefix="uc1" TagName="myBanner" Src="Controls/myBanner.ascx"
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>banner</title>
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<uc1:myBanner id="MyBanner1" runat="server"></uc1:myBanner>
</form>
</body>
</HTML>
<The web control, banner.ascx>
<%@ Control Language="vb" AutoEventWireup="false"%>
<html>
<head>
<!-- required due to MS update for IE-->
<script src="banner.js" type="text/javascript"></script>
<!-- required due to MS update for IE-->
</head>
<body>
<a href="http://www.microsoft.com" title = "Link to page">
<script type="text/javascript">showbanner();</script>
</a>
</body>
</html>

<The banner.js file>
function showbanner()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="600" height="80" VIEWASTEXT>\n');
document.write('<param name="movie" value="Mybanner.swf">\n');
document.write('<param name="quality" value="high">\n');
document.write('<param name="menu" value="true">\n');
document.write('<param name="play" value="true">\n');
document.write('<param name="wmode" value="Window">\n');
document.write('<param name="scale" value="ShowAll">\n');
document.write('<embed
pluginspage="http://www.macromedia.com/go/getflashplayer" src="Mybanner.swf"
type="application/x-shockwave-flash" scale="ShowAll" play="true" loop="true"
menu="true" wmode="Window" quality="1" </embed>\n');
document.write('</object\n');
}

</CODE>
Oct 10 '06 #1
2 3591
It doesn't look like the width and height are set on the embed tag. They're
set on the object, but try setting them on the embed as well. That should
help you get an idea if that size is correct since now the two methods will
have the exact same size dimensions.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Andy" <An**@discussions.microsoft.comwrote in message
news:34**********************************@microsof t.com...
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 javascript inside the file, sue to a change in IE which would prompt a
security concern otherwise, so I'll now list the contents of the 3
files...

<CODE>

<The web form>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="banner.aspx.vb"
Inherits="Examples.banner"%>
<%@ Register TagPrefix="uc1" TagName="myBanner"
Src="Controls/myBanner.ascx"
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>banner</title>
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<uc1:myBanner id="MyBanner1" runat="server"></uc1:myBanner>
</form>
</body>
</HTML>
<The web control, banner.ascx>
<%@ Control Language="vb" AutoEventWireup="false"%>
<html>
<head>
<!-- required due to MS update for IE-->
<script src="banner.js" type="text/javascript"></script>
<!-- required due to MS update for IE-->
</head>
<body>
<a href="http://www.microsoft.com" title = "Link to page">
<script type="text/javascript">showbanner();</script>
</a>
</body>
</html>

<The banner.js file>
function showbanner()
{
document.write('<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
width="600" height="80" VIEWASTEXT>\n');
document.write('<param name="movie" value="Mybanner.swf">\n');
document.write('<param name="quality" value="high">\n');
document.write('<param name="menu" value="true">\n');
document.write('<param name="play" value="true">\n');
document.write('<param name="wmode" value="Window">\n');
document.write('<param name="scale" value="ShowAll">\n');
document.write('<embed
pluginspage="http://www.macromedia.com/go/getflashplayer"
src="Mybanner.swf"
type="application/x-shockwave-flash" scale="ShowAll" play="true"
loop="true"
menu="true" wmode="Window" quality="1" </embed>\n');
document.write('</object\n');
}

</CODE>


Oct 10 '06 #2
Thats it!
Many thanks Mark!!

"Mark Fitzpatrick" wrote:
It doesn't look like the width and height are set on the embed tag. They're
set on the object, but try setting them on the embed as well. That should
help you get an idea if that size is correct since now the two methods will
have the exact same size dimensions.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Andy" <An**@discussions.microsoft.comwrote in message
news:34**********************************@microsof t.com...
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 javascript inside the file, sue to a change in IE which would prompt a
security concern otherwise, so I'll now list the contents of the 3
files...

<CODE>

<The web form>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="banner.aspx.vb"
Inherits="Examples.banner"%>
<%@ Register TagPrefix="uc1" TagName="myBanner"
Src="Controls/myBanner.ascx"
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>banner</title>
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<uc1:myBanner id="MyBanner1" runat="server"></uc1:myBanner>
</form>
</body>
</HTML>
<The web control, banner.ascx>
<%@ Control Language="vb" AutoEventWireup="false"%>
<html>
<head>
<!-- required due to MS update for IE-->
<script src="banner.js" type="text/javascript"></script>
<!-- required due to MS update for IE-->
</head>
<body>
<a href="http://www.microsoft.com" title = "Link to page">
<script type="text/javascript">showbanner();</script>
</a>
</body>
</html>

<The banner.js file>
function showbanner()
{
document.write('<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
width="600" height="80" VIEWASTEXT>\n');
document.write('<param name="movie" value="Mybanner.swf">\n');
document.write('<param name="quality" value="high">\n');
document.write('<param name="menu" value="true">\n');
document.write('<param name="play" value="true">\n');
document.write('<param name="wmode" value="Window">\n');
document.write('<param name="scale" value="ShowAll">\n');
document.write('<embed
pluginspage="http://www.macromedia.com/go/getflashplayer"
src="Mybanner.swf"
type="application/x-shockwave-flash" scale="ShowAll" play="true"
loop="true"
menu="true" wmode="Window" quality="1" </embed>\n');
document.write('</object\n');
}

</CODE>


Oct 10 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

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: dscriv | last post by:
Hello, I have Netscape 8.0.4 (in Firefox mode) and Flash 8.0.24.0. I also have IE and Firefox installed. If I go to this page, which contains a Flash detection movie:...
115
by: post2google | last post by:
I was thinking about where to go for lunch the other day, so I went to hardees.com to see what the menu looked like these days. What comes up is a big note that my flash version is not new enough...
18
by: gconrads | last post by:
OK, today is my twofer special on js questions. BTW: the method used here is working in Firefox I'm working on a script that switches the width of a Flash movie between 100% and 812 pixels...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
1
by: Sura | last post by:
Hi I have a flash interactive window which has html links and this appears on an html page. This window can be moved with the mouse on the html page. The html page has an iFrame too. When the...
2
by: Paul Neave | last post by:
Hello all. Please try this link for me and let me know what you see: http://www.neave.com/temp/stretch_test.html You should see a green header filling the top of the page, a red footer at...
24
by: GloStix | last post by:
I'm trying to center this banner, it's in a div that has the same width so it's not exactly "centering" but it's screwed up, It works in safari but in Firefox it's messed up. I uploaded a Video to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
0
tracyyun
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...
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,...

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.