/    Sign up×
Community /Pin to ProfileBookmark

Javascript to detect Quicktime version

Why isn’t this script working?

It is supposed to detect quicktime version and if there is no correct version, it should display an image.

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd“>
<html xmlns=”http://www.w3.org/1999/xhtml”><head>

<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″><title>Thumper</title>

<link href=”thumper.css” rel=”stylesheet” type=”text/css”>
<script src=”SpryEffects.js” type=”text/javascript”></script>
<script type=”text/javascript”>
<!–
function MM_effectShake(targetElement)
{
Spry.Effect.DoShake(targetElement);
}
function MM_effectDoFade(targetElement, duration, from, to, toggle)
{
Spry.Effect.DoFade(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
}
//–>
</script>
<script language=”Javascript”>
<! — hide from pre-script browsers
var haveqt = false;
// — >
</script>

<script language=”Javascript”>
<! — hide from pre-script browsers
if (navigator.plugins) {
for (i=0; i < navigator.plugins.length; i++ ) {
if (navigator.plugins[i].name.indexOf(“QuickTime”) >= 0)
{ haveqt = true; }
}
}
// — >
</script>
<script language=”JavaScript”>
if (bVer == “4x”) || (bVer == “5x”) || (bName == “NN”)
document.write(“<embed src=Teaser_only.mov width=”640″ height=”480″/>”) ;

else document.write(“<a href=Teaser_only.mov> Play Movie </a>”);
</script></head><body>
<div id=”wrapper”>

<div id=”leftie”><img src=”thump_desaturate.gif” alt=”Thumper rocks Sf” valign=”bottom” width=”150″ /></div>

<div id=”carre_right”>

<script language=”Javascript”>
<! — hide from pre-script browsers
if (haveqt)
{document.write(’<embed SRC=”Teaser_only.mov” width=”640″ height=”480″ AUTOPLAY=true CONTROLLER=false LOOP=false freeze=yes PLUGINSPAGE=http://www.apple.com/quicktime>’);}
else
{document.write(’<img src=”Name_thumper.gif” alt=”Thumper title rocks Sf” width=”500″ height=”160″>’);}
// — >
</script>

</div>

<div id=”nav_rock”>
<a href=”mailto:[email protected]“>mailing list</a> &nbsp;|
<a href=”http://www.thumpersf.com/Thumper_6th%20Street.mp3” target=”_new”>listen</a> &nbsp;|
<a href=”http://myspace.com/thumpersf” target=”_
new”>myspace</a> &nbsp;|

<a href=”mailto:[email protected]“>contact</a></div>

</div>
</body></html>

to post a comment
JavaScript

1 Comments(s)

×

Success!

Help @npqster spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...