March 17, 200917 yr Hi, I'm building a website for a school and they like the example of a flash banner I showed them but they were concerned about what would happen if the use doesn't have flash installed. I told them I belive it's possible to revert to a standard jpg in the place of the flash movie if this happens. I've seen the 'you need to install flash player' message before but surely it's possible to display an image instead. I've done a bit of googling and swfobject has come up a few times. I've tried searching this forum but I keep it wont let me search. I've tried numerous combinations including dropping all the keywords and it still wont let me search! If anyone can educate me on how this is done, I'd be very grateful. Thanks
March 20, 200917 yr Author simple solution: set the div with the background image of the fallback banner.
March 20, 200917 yr Or do this... <object type="application/x-shockwave-flash" data="flashfile.swf" width="500" height="200"> <param name="movie" value="images/banner.swf" /> <img src="banner.gif" width="500" height="200" alt="banner" /> </object> That's valid xhtml too . set the div with the background image of the fallback banner That's a great thing to do with image galleries, so when an image breaks, or fails to load, you have a fallback. Flash embeds aren't always encased in a div, so use the object tag to select the flash element object{//stuff here} or be more specific if needs to be div#header object{//stuff here} and so on...
Create an account or sign in to comment