473,666 Members | 2,047 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

javaScript for flash detection On Click

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.optusne t.com.au/kevindauth"
if useRedirect = false;

document.writel n("Oh you do not have the required flash player 6.0.
you are being redirected now OK It wont take long:-)");
<a href="http:blal baMacromedia"> </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
1 4807
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.goog le.com...
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.optusne t.com.au/kevindauth"
if useRedirect = false;

document.writel n("Oh you do not have the required flash player 6.0.
you are being redirected now OK It wont take long:-)");
<a href="http:blal baMacromedia"> </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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
11376
by: Mika S. | last post by:
Hi, How can I detect if the Flash plugin is installed? Should be working with the most common browsers and environments. Thanks, Mika
4
1989
by: kevin | last post by:
meta refresh tag is failing , it is supposed to go to the entry1.htm site which is the flash swf file but it doesn't check code please http://members.optusnet.com.au/~kevindauth/ thanks kevin
6
3558
by: Cliff R. | last post by:
Hi, I use a handy little Javascript Flash detection script on a number of sites (copied below). Usually works great, but I just started trying Firefox and it's not working. A few browsers are referenced in the script so I presume that Firefox needs to be added somewhere -- does anyone know how I could update this to be supported by Firefox? Thanks! <SCRIPT TYPE="text/JavaScript">
4
2568
by: trpost | last post by:
I am looking for a script using javascript to pull browser information including, browser type and version, OS info, plugins (flash, acrobat, media player, etc), java version, etc. that will work on IE/Firefox. I am looking for detalis similar to what is available at: http://www.webreference.com/tools/browser/_browserhawk.html Thanks!
9
18177
by: Anees | last post by:
Hi friends.. i know it may be a repeated Q. Though i had search across i couldnt get the right solution and in some, links were broken.. I want to check a browser when a user clicks on a link whether it supports playing Flash files or not, If yes it starts playing the Flash file.
26
3882
by: Jake Barnes | last post by:
I did a search on the newsgroup comp.lang.javascript. I was searching for "how to play a sound with Javascript". I'm somewhat suprised that the majority of entries are from the 1990s, and there are almost no posts from the last 3 years: http://groups.google.com/group/comp.lang.javascript/search?group=comp.lang.javascript&q=how+to+play+a+sound+with+Javascript&qt_g=Search+this+group Even after sorting by date, there don't appear any...
1
2723
by: critchey1 | last post by:
Hey everyone, i've been playing around with trying to get some scripts to work with detecting whether flash player is installed on your computer or not. I found a flash detection kit on the adobe site which had a client side detection method using javascript. Basically what im trying to get it to do is if flash player is installed, use the style property display="none" to hide my static content, and if flash is not installed hide the flash...
0
8448
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8783
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8552
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7387
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2773
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1776
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.