Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detect if flash is installed!

Status
Not open for further replies.

SPYDERIX

Technical User
Joined
Jan 11, 2002
Messages
1,899
Location
CA
Hi,

How can you tell if flash is installed:

I want to have a script that is along the lines of this:

<SCRIPT LANGUAGE=&quot;Javascript&quot;>
if FLASH IS INSTALLED,
{
document.write('<EMBED SRC=&quot;intro.swf&quot;></EMBED>');
}
else
{
window.location.replace('home.shtml')
}
</SCRIPT>

I don't know the syntax for determining if flash is install. Can someone please help me out. And if at all possbible I would like this to be server side so that I don't need to worry about people not having JS turned on. But only if it is possible and someone knows how to do it. JS will be good enough for now.

Thanks! NATE
spyderix.gif

design@spyderix-designz.com
 
Create a Flash movie that all it does is redirect instantly to the intro site.

Then create a redirect after 5 seconds that goes to your home page.

If Flash installed, they will be directed to the intro site, and if it isn't, then the redirect will forward them to your home page after 5 seconds.

Steve
 
Hi,

I don't want to do that. B/C the intro is static will waiting for a command. The flash movie has a command to goto the home page, but if they don't have flash I want the page to goto the next page right away. If they do have flash then show then flash movie.

Thanks! NATE
spyderix.gif

design@spyderix-designz.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top