Printer Friendly Version
Email this thread to a friend
|
Featured Web Site Template |
|
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
DianeV
Joined: Eons Ago
# Posts: 5246
|
Posted: 2001-Mar-20 13:44
In another thread, xelA said:> If someone doesn't have Flash then a gif of your vector based masterpiece will reside in its place and everyone is happy right? How would you do this? Browser detection?
|
 |
xelA
Joined: Nov 24, 1999
# Posts: 1857
|
Posted: 2001-Mar-20 14:05
When you export something from Flash in the options it gives you the opertunity to make a gif of a certain frame. Then it writes the js code with an "if" type statement.The code on my site looks like this: <!-- Aftershock spike.swf 3=130 4=95 5 43 7=550 8=400 --> <object classid="clsid :D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=3,0,0,0" id=spike width=130 height=95> <param name=movie value="Flash/spike.swf"> <param name=quality value=autohigh> <param name=bgcolor value=#000000> <script language=JavaScript> <!-- var ShockMode = 0; if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) { if (navigator.plugins && navigator.plugins["Shockwave Flash"]) ShockMode = 1; } if ( ShockMode ) { document.write('<EMBED SRC="Flash/spike.swf"'); document.write(' swLiveConnect=FALSE WIDTH=130 HEIGHT=95'); document.write(' QUALITY=autohigh BGCOLOR=#000000'); document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'); document.write('</EMBED>'); } else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){ document.write('<IMG SRC="Flash/spike.gif" WIDTH=550 HEIGHT=400 BORDER=0>'); } //--> </script><noembed> <img src="../../Program Files/Macromedia/Flash 3/spike.gif" width=550 height=400 border=0></NOEMBED><noscript><img src="Flash/spike.gif" width=550 height=400 border=0></noscript> </object> <!-- EndAftershock spike.swf --> I haven't played with Flash in a while I'll look through it and tell you exatly how in a bit.
[This message has been edited by xelA (edited 03-20-2001).]
|
 |
lisasmiles
Joined: Jan 16, 2000
# Posts: 413
|
Posted: 2001-Mar-20 14:08
This is done with Javascript by detecting the browsers ability to deal with a flash plug in, and substituting an <img> tag in place of the flash show. Check this page at Macromedia support: http://www.macromedia.com/support/flash/how/shock/javaplugs/javaplugs04.html
|
 |
DianeV
Joined: Eons Ago
# Posts: 5246
|
Posted: 2001-Mar-20 14:46
Terrific. Thanks, both of you.
|
 |
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you cannot find this message, click here to Re-Send it.
|
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.
|
Switch to Advanced Editor and ...
Create a New Topic
or Reply to this Thread
|
|