473,750 Members | 2,541 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="ban ner.aspx.vb"
Inherits="Examp les.banner"%>
<%@ Register TagPrefix="uc1" TagName="myBann er" 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.c om" title = "Link to page">
<script type="text/javascript">sho wbanner();</script>
</a>
</body>
</html>

<The banner.js file>
function showbanner()
{
document.write( '<object classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=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="ht tp://www.macromedia. com/go/getflashplayer" src="Mybanner.s wf"
type="applicati on/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 3609
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**@discussio ns.microsoft.co mwrote in message
news:34******** *************** ***********@mic rosoft.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="ban ner.aspx.vb"
Inherits="Examp les.banner"%>
<%@ Register TagPrefix="uc1" TagName="myBann er"
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.c om" title = "Link to page">
<script type="text/javascript">sho wbanner();</script>
</a>
</body>
</html>

<The banner.js file>
function showbanner()
{
document.write( '<object
classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=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="ht tp://www.macromedia. com/go/getflashplayer"
src="Mybanner.s wf"
type="applicati on/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**@discussio ns.microsoft.co mwrote in message
news:34******** *************** ***********@mic rosoft.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="ban ner.aspx.vb"
Inherits="Examp les.banner"%>
<%@ Register TagPrefix="uc1" TagName="myBann er"
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.c om" title = "Link to page">
<script type="text/javascript">sho wbanner();</script>
</a>
</body>
</html>

<The banner.js file>
function showbanner()
{
document.write( '<object
classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=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="ht tp://www.macromedia. com/go/getflashplayer"
src="Mybanner.s wf"
type="applicati on/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
3572
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">
1
2242
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: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15507 all three browers successfully run the Flash movie and show the same version of Flash to be installed. However, if I try to use a javascript Flash detection solution, it does
115
13323
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 so I can't use the site. What complete losers! When are businesses going to understand that the purpose of a web site is to communicate with customers or business parterns and NOT so your "web master or "web engineer" can show off what they...
18
21597
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 depending on the innerwidth of the browser window. The point is when a flash movie is embedded for fullscreen usage (100%) it acts somewhat like a background, and won't cause scrollbars if the window is scaled to a smaller size than the 'actual' content...
8
5909
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 clients (Internet Explorer). My flash content was originally brought in via the “flash satay” method, but I have since used some server-side magic do deliver one <objecttag
1
8033
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 flash window comes above the iframe area the html links stop working. Yet the links remain active when the flash window is outside the iFrame area. This problem is coming in Firefox, but running fine in IE. If anybody has any solution, please...
2
2650
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 the very bottom of the page and a white Flash movie filling the gap in between. You'll need at least Flash Player 7, otherwise it will just show black. It shouldn't scroll, it should act like a framed page but
24
3628
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 show what I'm talking about. http://screencast.com/t/i5SLg3cAczH (*WARNING, TAKES A WHILE TO LOAD*) *HTML* <html> <head> <title>James Mann - Portfolio</title>
0
8838
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9583
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, 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...
0
9396
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 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...
0
9256
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 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...
0
8263
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 projectplanning, coding, testing, and deploymentwithout 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...
0
6081
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4888
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2226
bsmnconsultancy
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...

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.