Dragen Posted December 6, 2007 Share Posted December 6, 2007 hi, I'm not sure at all what forum this should be in, but figured html would be a safe bet. What I'm trying to do is display a flash video, but only if the user's browser supports css. If css doesn't work, then flash doesn't show. Most sites I make I try and get them completely accessible to all users (including text readers) so I make sure that all images etc are done in css so the page is still readable. Now is there a way that I can only embed flash if css works? I was hoping there'd be some fancy way of displaying flash with css, but that was just a vain strike in the dark. any help would be great! Quote Link to comment https://forums.phpfreaks.com/topic/80521-solved-only-show-flash-object-if-css-works/ Share on other sites More sharing options...
phpQuestioner Posted December 6, 2007 Share Posted December 6, 2007 no great idea - but a basic one <div style="display:none;visibility:hidden"> <!-- Add Flash Movie Here --> </div> if the browser supports css; the flash movie will not display and if it does not support flash; it will appear. Quote Link to comment https://forums.phpfreaks.com/topic/80521-solved-only-show-flash-object-if-css-works/#findComment-408377 Share on other sites More sharing options...
Dragen Posted December 7, 2007 Author Share Posted December 7, 2007 thanks, but I'm wanting it the other way around I could probably use ajax to check if flash is enabled, but that's not what I'm wanting. My best bet is probably to just use gif or png images instead of flash. The user doesn't need any interaction, it's just for a moving banner and flash would work best, but I'll see. Quote Link to comment https://forums.phpfreaks.com/topic/80521-solved-only-show-flash-object-if-css-works/#findComment-408382 Share on other sites More sharing options...
phpQuestioner Posted December 7, 2007 Share Posted December 7, 2007 Yeah you could create an animated gif similar to your flash movie and use JavaScript to display it if browser does not have flash enabled. I use a script like this on a site I designed. I think I got it from Adobe; I cannot remember for sure. Quote Link to comment https://forums.phpfreaks.com/topic/80521-solved-only-show-flash-object-if-css-works/#findComment-408593 Share on other sites More sharing options...
Dragen Posted December 7, 2007 Author Share Posted December 7, 2007 yeah. Thanks for the help! Quote Link to comment https://forums.phpfreaks.com/topic/80521-solved-only-show-flash-object-if-css-works/#findComment-408726 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.