Re: Flash benner too small in Firefox?
- From: "Mark Fitzpatrick" <markfitz@xxxxxxxxxx>
- Date: Tue, 10 Oct 2006 10:53:35 -0500
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" <Andy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:34A101A2-C6A6-418C-B029-B776FA444250@xxxxxxxxxxxxxxxx
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>
.
- Follow-Ups:
- Re: Flash benner too small in Firefox?
- From: Andy
- Re: Flash benner too small in Firefox?
- References:
- Flash benner too small in Firefox?
- From: Andy
- Flash benner too small in Firefox?
- Prev by Date: Re: Developing ASP.NET w/out IIS or Admin Rights
- Next by Date: Re: Datalist refresh
- Previous by thread: Flash benner too small in Firefox?
- Next by thread: Re: Flash benner too small in Firefox?
- Index(es):
Relevant Pages
|