Flash benner too small in Firefox?

G

Guest

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>
 
M

Mark Fitzpatrick

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.
 
G

Guest

Thats it!
Many thanks Mark!!

Mark Fitzpatrick said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top