• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 416
  • Last Modified:

Why does my Flash website show small in Internet Explorer?

A website I have designed is showing very small in Internet Explorer. It shows fine in Firefox. Could someone work out the problem?


The website is:

www.sabaithaimassage.co.uk


I have attached the code below. The html file links to a preloader movie which then links to the main movie. Any help is appreciated. Thanks
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
	<head>
		<title>Sabai Thai Massage - Birmingham City Centre</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<script type="text/javascript" src="swfobject.js"></script>
		<script type="text/javascript">
			<!-- Adobe recommends that developers use SWFObject2 for Flash Player detection. -->
			<!-- For more information see the SWFObject page at Google code (http://code.google.com/p/swfobject/). -->
			<!-- Information is also available on the Adobe Developer Connection Under "Detecting Flash Player versions and embedding SWF files with SWFObject 2" -->
			<!-- Set to minimum required Flash Player version or 0 for no version detection -->
			var swfVersionStr = "10.2.152";
			<!-- xiSwfUrlStr can be used to define an express installer SWF. -->
			var xiSwfUrlStr = "";
			var flashvars = {};
			var params = {};
			params.quality = "high";
			params.bgcolor = "#180000";
			params.play = "true";
			params.loop = "true";
			params.wmode = "direct";
			params.scale = "showall";
			params.menu = "true";
			params.devicefont = "false";
			params.salign = "";
			params.allowscriptaccess = "sameDomain";
			var attributes = {};
			attributes.id = "Sabai Thai Massage - Birmingham City Centre";
			attributes.name = "Sabai Thai Massage - Birmingham City Centre";
			attributes.align = "middle";
			swfobject.createCSS("html", "height:100%; background-color: #180000;");
			swfobject.createCSS("body", "margin:0; padding:0; overflow:hidden; height:100%;");
			swfobject.embedSWF(
				"preloader.swf", "flashContent",
				"100%", "100%",
				swfVersionStr, xiSwfUrlStr,
				flashvars, params, attributes);
		</script>
		<script type="text/javascript">

  			var _gaq = _gaq || [];
  			_gaq.push(['_setAccount', 'UA-25013463-1']);
  			_gaq.push(['_trackPageview']);

  			(function() {
    			var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    			ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  			})();

		</script>
	</head>
	<body>
		<!-- SWFObject's dynamic embed method replaces this alternative HTML content for Flash content when enough JavaScript and Flash plug-in support is available. -->
		<div id="flashContent">
			<p align="center">
			<a href="http://www.adobe.com/go/getflash">
				<img src="images/noflash.png" alt="Sabai Thai Massage - Birmingham City Centre" />
			</a>
			</p>
			<font face="arial" color="white">
			<p align="left"><h1>SABAI THAI MASSAGE</h1>
			<p align="left">Welcome to Sabai Thai Massage, the best place in Birmingham for traditional Thai massage. We offer a range of different massage therapies, all designed to give you the most relaxing and rejuvenating time possible.</p>
			<p align="left"><h2>FULLY QUALIFIED FROM THAI MASSAGE SCHOOLS</h2>
			<p align="left">We cater for all types of customer, male and female, and all shapes and sizes as well. All of our therapists are fully qualified and certificated from Thai massage schools in both Thailand and England, and also have many years of experience.</p>
			<p align="left"><h2>BIRMINGHAM CITY CENTRE</h2>
			<p align="left">We are based in Birmingham City Centre, just off Victoria Square. We also have a 5 STAR rating on TrustPilot. Please check our website on a PC with flash player to read our reviews.</p>
			<p align="left"><b>0800 756 1250</b></p>
			<p align="left"><b>07551 382 858</b></p>
			<p align="left"><b>info@sabaithaimassage.co.uk</b></p>
			</font>
			<font face="arial" color="red">
			<p align="left"><h2>THIS IS A BASIC VERSION OF THE SABAI THAI MASSAGE WEBSITE. TO SEE THE FULL WEBSITE PLEASE VIEW IT ON A PC WITH FLASH PLAYER</h2>
			</font>
		</div>
	</body>
</html>

Open in new window

0
cheezy102
Asked:
cheezy102
1 Solution
 
HainKurtSr. System AnalystCommented:
try adding this to your page

<style type="text/css">
html, body, object{width:100%;height:100%;padding:0;margin:0;}
</style>
0
 
hax1Commented:
<div id="flashContent">

modify to: <div id="flashContent" style="height: 100%; width: 100%">

altough I wouldn't recommend using full page flash anywhere, it's simply not a good way to do things.

and also consider using fixed pixels (for example 960x600) or something for the flash ... since it'll probably not look good on a full hd monitor if you scale it to 100% ... (let alone the performance!)
0
 
cheezy102Author Commented:
Worked perfectly. Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now