Jump to content

[SOLVED] only show flash object if css works?


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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.