[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Why does my Flash website show small in Internet Explorer?

Posted on 2011-10-05
3
Medium Priority
?
404 Views
Last Modified: 2012-05-12
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
Comment
Question by:cheezy102
3 Comments
 
LVL 61

Accepted Solution

by:
HainKurt earned 2000 total points
ID: 36917241
try adding this to your page

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

Expert Comment

by:hax1
ID: 36917244
<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
 

Author Closing Comment

by:cheezy102
ID: 36918101
Worked perfectly. Thanks
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question