[thelist] Flash degrading to .gif

Paul Backhouse paul.backhouse at 2cs.com
Mon Dec 3 10:14:19 CST 2001


hmmmmm....i know how to show something different if they haven't got flash:

<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
<!--
// in this section we set up the content to be placed dynamically on the
page
// customize movie tags and alternate html content below

if (!useRedirect) {		// if dynamic embedding is turned on
	if(hasRightVersion) {	// if we've detected an acceptable version
		var oeTags = '<OBJECT
CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'WIDTH="415" HEIGHT="55"'
		+
'CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.c
ab">'
		+ '<PARAM NAME="MOVIE" VALUE="images/SomeFlash.swf">'
		+ '<PARAM NAME="PLAY" VALUE="true">'
		+ '<PARAM NAME="LOOP" VALUE="true">'
		+ '<PARAM NAME="QUALITY" VALUE="high">'
		+ '<PARAM NAME="MENU" VALUE="false">'
		+ '<EMBED SRC="images/SomeFlash.swf"'
		+ 'WIDTH="415" HEIGHT="55"'
		+ 'PLAY="true"'
		+ 'LOOP="true"'
		+ 'QUALITY="high"'
		+ 'MENU="false"'
		+ 'TYPE="application/x-shockwave-flash"'
		+
'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod
_Version=ShockwaveFlash">'
		+ '</EMBED>'
		+ '</OBJECT>';

		document.write(oeTags); 	// embed the flash movie
	} else {	// flash is too old or we can't detect the plugin
		var alternateContent = '<a href=SomePage.asp><img
src=\"images/SomeImage.gif\" border=0 width=415 height=55>'	// height, width
required!
			+ '</a>';

		document.write(alternateContent);	// insert non-flash content
	}
}

// -->
</SCRIPT>

does that help?

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of aardvark
Sent: 03 December 2001 16:05
To: thelist at lists.evolt.org
Subject: [thelist] Flash degrading to .gif



ok, let's say i have a Flash logo on my site... and let's say that
Flash logo can, obviously, sometimes be disabled by the user (no
plug-in, refusal to let plug-ins run, etc.) and let's say i want to
ensure a static image shows in its place and it gracefully
degrades... and let's say i'd really like to see it validate...

where can i go to see that type of code in place?


---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list