Jump to content

[SOLVED] only show flash object if css works?


Dragen

Recommended Posts

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!

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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.