gavin26er Posted November 29, 2005 Share Posted November 29, 2005 hi guyswhat i want to do is display a jpg as defaulf if my swf file doesn't load. i want to do this so if the user trying to load the site doesn't have flash a default picture will replace the swf that won't load. i know you need to use javascript to make this work but i can't seem to find anyone with the right way to make it work. please help i'm been trying to figure this out forever.gavin Link to comment Share on other sites More sharing options...
Skemcin Posted November 29, 2005 Share Posted November 29, 2005 hi guyswhat i want to do is display a jpg as defaulf if my swf file doesn't load. i want to do this so if the user trying to load the site doesn't have flash a default picture will replace the swf that won't load. i know you need to use javascript to make this work but i can't seem to find anyone with the right way to make it work. please help i'm been trying to figure this out forever.gavin Welcome to the forums.What you seek is called a "flash sniffer" that will:a.) look for the flash fileb.) look for the version to sniff forc.) display your back up image if the first two failand here is a page that will build one for you:http://www.infinity-rd.com/samples/flash_sniffer_build.htmlP.S. there are plenty more where that one came from - just google "flash sniffer" Link to comment Share on other sites More sharing options...
F-Man Posted November 30, 2005 Share Posted November 30, 2005 JavaScript?Just use standard HTML. <object data="file.swf" type="application/x-shockwave-flash" width="xx" height="xx"> <param name="movie" value="file.swf" /> <img src="file.jpg" alt="file" /></object> That should be fine. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now