Re: Flash benner too small in Firefox?



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>




.



Relevant Pages

  • Flash benner too small in Firefox?
    ... Hi hopefully someone has come accross this issue, as it's doing my head in. ... The web page has an embedded web control. ... The Web control references an external javascript file rather than having ... <HTML> ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Flash benner too small in Firefox?
    ... "Mark Fitzpatrick" wrote: ... The web page has an embedded web control. ... <HTML> ... <HEAD> ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Name Overwritten by ID when runat=server
    ... Here is the complete content of my webform: ... <HTML> ... <HEAD> ... > If your textbox is inside a web control then it will be renamed ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Not compiling?????
    ... "aspnet_regiis.exe -i" That should fix your problem. ... >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 ... >If I place a Web Control Button and an HTML button on a grid layout, ... >What I get is only the HTML button. ...
    (microsoft.public.dotnet.languages.vb.controls)
  • Re: PHP Web Controls
    ... ASP.NET has a concept of a user defined web control, ... write out html for that control. ... plug-ins to implement new behaviors, new validations, new layouts, etc.. ... PHP Classes - Free ready to use OOP components written in PHP ...
    (comp.lang.php)