# SWFObject problems

**URL:** <https://forum.kirupa.com/t/swfobject-problems/283117>\
**Category:** Uncategorized\
**Created:** [March 2, 2009, 8:45pm UTC](https://forum.kirupa.com/t/swfobject-problems/283117 "2009-03-02T20:45:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dojjjan](https://avatars.discourse-cdn.com/v4/letter/d/e495f1/32.png) [@Dojjjan](https://forum.kirupa.com/u/Dojjjan)\
**Post date:** [March 2, 2009, 8:45pm UTC](https://forum.kirupa.com/t/swfobject-problems/283117/1 "2009-03-02T20:45:16Z")

</div>

Asked about this before but it never got solved… it seems that when i use this code it only shows a white(blank) page if i have an earlier version of flash player installed… works fine if there is no flashplayer at all(alternative content shows) or if flashplayer 10 is installed (shows flash contents). I need it to show alternative content if visitor have earlier versions of flash player…

ty!

```auto

<!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" xml:lang="en" lang="en"> 

	<head>    
		<title>Test</title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		
		<script type="text/javascript" src="js/swfobject.js"></script>  
		<script type="text/javascript" src="js/swfmacmousewheel2.js"></script>
	    <script type="text/javascript" src="js/swfaddress.js"></script>
		<script type="text/javascript">
		
		var flashvars = {};
		var params = { scale:'noScale', salign:'lt', menu:'false' };
		var attributes = { id:'index', name:'index' }; // give an id to the flash object
		var r = Math.floor(Math.random()*99999);

		swfobject.embedSWF("index.swf?r="+r, "flashContent", "100%", "100%", "10.0.12", "js/expressInstall.swf", flashvars, params, attributes );
		swfmacmousewheel.registerObject(attributes.id);
	
		</script>
		<style type="text/css" media="screen">
		  html, body, #flashContent { height:100%; }
		  body { margin:0; padding:0; overflow:hidden; }
		</style>
	</head>
	<body>
		<div id="flashContent">
			<h1>This page requires flashplayer 10</h1>
			<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
		</div>
	</body> 

</html>

```
