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
27CDB6E-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>
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
![Big Grin :D :D](/styles/default/custom/smilies/grin.gif)
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>