By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,306 Members | 1,621 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,306 IT Pros & Developers. It's quick & easy.

javaScript for flash detection On Click

P: n/a
hi there, can you alter or give advice to the following code . I
Basically want to detect for flash player 6 onClicking a button and if
flash player is not correct write to screene bla bla bla you are
being redirected
how do I position the text too?
or maybe I should use a popup?:-)

I have the onClick function to goto "function version()"

How do you embed html into javascript??

#######################################
function version(){

version requiredVersion = 6; // Version the user needs to view site

version useRedirect = true; // Flag indicating whether or not to
load a

version flashPage = "http://members.optusnet.com.au/kevindauth"
if useRedirect = false;

document.writeln("Oh you do not have the required flash player 6.0.
you are being redirected now OK It wont take long:-)");
<a href="http:blalbaMacromedia"> </a>
}

// System globals
var flash2Installed = false; // boolean. true if flash 2 is
installed
var flash3Installed = false; // boolean. true if flash 3 is
installed
var flash4Installed = false; // boolean. true if flash 4 is
installed
var flash5Installed = false; // boolean. true if flash 5 is
installed
var flash6Installed = false; // boolean. true if flash 6 is
installed
var maxVersion = 6; // highest version we can actually
detect
var actualVersion = 0; // version the user really has
var hasRightVersion = false; // boolean. true if it's safe to embed
the flash movie in the page
var jsVersion = 6.0; // the version of javascript supported
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
for example - you can find solution here:

http://www.xs4all.nl/~ppk/js/flash.html

--
Sergey.
http://www.takereal.com/freelance/resume.asp

"kevin" <le*************@hotmail.com> wrote in message
news:c4*************************@posting.google.co m...
hi there, can you alter or give advice to the following code . I
Basically want to detect for flash player 6 onClicking a button and if
flash player is not correct write to screene bla bla bla you are
being redirected
how do I position the text too?
or maybe I should use a popup?:-)

I have the onClick function to goto "function version()"

How do you embed html into javascript??

#######################################
function version(){

version requiredVersion = 6; // Version the user needs to view site

version useRedirect = true; // Flag indicating whether or not to
load a

version flashPage = "http://members.optusnet.com.au/kevindauth"
if useRedirect = false;

document.writeln("Oh you do not have the required flash player 6.0.
you are being redirected now OK It wont take long:-)");
<a href="http:blalbaMacromedia"> </a>
}

// System globals
var flash2Installed = false; // boolean. true if flash 2 is
installed
var flash3Installed = false; // boolean. true if flash 3 is
installed
var flash4Installed = false; // boolean. true if flash 4 is
installed
var flash5Installed = false; // boolean. true if flash 5 is
installed
var flash6Installed = false; // boolean. true if flash 6 is
installed
var maxVersion = 6; // highest version we can actually
detect
var actualVersion = 0; // version the user really has
var hasRightVersion = false; // boolean. true if it's safe to embed
the flash movie in the page
var jsVersion = 6.0; // the version of javascript supported

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.