Part 3. Add scrollbars for small browser windows

Dynamic SEO tags for your Flash site using PHP

For this step, we’re going to use swfforcesize, a small script which will do most of the ground work for us.

Firstly download and extract the script.

<html>
<head>
<title>Full Screen Flash How To</title>
<meta name="description" content="Google Optimized Description">
<meta name="keywords" content="Google Optimized Keywords">

<script type="text/javascript" src="swfobject.js"></script>
</head>
<body>
<div id="container">
<script type="text/javascript">
// <![CDATA[

var container = new SWFObject("[FLASH MOVIE].swf", "source", "100%", "100%", "8");

// ]]>
</script>
<noscript>
Google Optimised Description and alternate content
</noscript>
<div id="flashcontent">
More Google Optimised Descriptions and alternate content

<strong>You need to upgrade your Flash Player</strong><br>
<a href="http://www.adobe.com/go/getflashplayer">Click here</a> to download the latest flash player to view this site. <br><br>

This is replaced by the Flash content.
Place your alternate content here and users without the Flash plugin or with
Javascript turned off will see this.
</div>
</div>
</body>
</html>

Leave a Reply

Your email address will not be published. Required fields are marked *