A SERVICE OF

logo

Macromedia MAX 2005 - Anaheim, CA What’s New In Flash 8
17
This is the window that appears if you use the JavaScript detection, and the user needs the
Flash Player.
Detection Code
Let’s take a close look at the source code that’s used in our current document.
1. In the Browser select View > Source (IE) or View > Page Source (FireFox).
2. The alternate content that will be displayed is highlighted in the source code below. You can
change this code to customize the user’s experience.
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<script language="JavaScript" type="text/javascript">
<!--
var hasRightVersion = DetectFlashVer(requiredMajorVersion,
requiredMinorVersion, requiredRevision);
if(hasRightVersion) { // if we've detected an acceptable version
var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-
444553540000"'
+ 'width="550" height="400"'
+
'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.
cab">'
+ '<param name="movie" value="Untitled-2.swf" /><param name="quality"
value="high" /><param name="bgcolor" value="#ffffff" />'
+ '<embed src="Untitled-2.swf" quality="high" bgcolor="#ffffff" '