<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="639" height="250"' + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">' + '<param name="movie" value="gfx/basic/textscroller.swf" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#000000" />' + '<embed src="gfx/basic/textscroller.swf" loop="false" menu="false" quality="best" wmode="transparent" bgcolor="#000000" ' + 'width="639" height="250" name="Opzet" align="middle"' + 'play="true"' + 'loop="false"' + 'quality="high"' + 'allowScriptAccess="sameDomain"' + 'type="application/x-shockwave-flash"' + 'pluginspage="http://www.macromedia.com/go/getflashplayer">' + '<\/embed>' + '<\/object>'; document.write(oeTags); // embed the flash movie } else { // De geinstalleerde flash-plugin is te oud of niet detecteerbaar var alternateContent = 'Alternate HTML content should be placed here.' + 'Deze illustratie vereist een flash-plugin.' + '<a href=http://www.macromedia.com/go/getflash/>download de Flash-plugin</a>'; document.write(alternateContent); // insert non-flash content } // --> </script>
[[swfFix?&embedType=`standard`&id=`myId`&version=`9.0.0`&expressInstall=`true`]]
<object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="639" height="250" loop="false" menu="false" quality="best" wmode="transparent" bgcolor="#000000"> <param name="movie" value="gfx/basic/textscroller.swf" /> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="gfx/basic/textscroller.swf" width="639" height="250" loop="false" menu="false" quality="best" wmode="transparent" bgcolor="#000000" > <!--<![endif]--> <p>Alternative content</p> <!--[if !IE]>--> </object> <!--<![endif]--> </object>
<param name="movie" value="gfx/basic/textscroller.swf" />
<param name="movie" value="gfx/basic/textscroller.swf" /> <param name="wmode" value="transparent"/>
<head> [[swfFix?&embedType=`standard`&id=`myId`&height=`200`&width=`800`&swfUrl=`assets/flash/myFlashFile` &version=`9.0.0`&expressInstall=`true`]] </head> <body> <div> <object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="780" height="420"> <param name="movie" value="myContent.swf" /> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="myContent.swf" width="780" height="420"> <!--<![endif]--> <p>Alternative content</p> <!--[if !IE]>--> </object> <!--<![endif]--> </object> </div> </body>
<head> <script type="text/javascript" src="assets/js/swffix.js"></script> <script type="text/javascript"> SWFFix.embedSWF("assets/flash/landscape.swf", "banner", "995", "112", "9.0.0", "assets/flash/expressInstall.swf"); </script> </head> <body> <div id="banner"><img src="assets/templates/images/banner.jpg" width="995" height="112" alt="Welcome to my site"> </body>
Don’t you feel that most people nowadays have JavaScript enabled and flash installed though?I think that most modern browsers come with the flash plug-in pre-installed. However there may still be some users who chose not to use it or occasional users with old browsers. Also it does not work with screen readers so you can have an image with a nice description in the alt tag to help in these cases (which may also help with SEO as well).