Hi Gary, here's the whole unsightly mess 😀
Just the media player, function processMouseClickedMovie(), the jquery code to reveal the player, and the link (with tags removed to prevent parsing) ...
In both Safari and FF mov!.mov plays (because of the autoplay param, and jquery fadeIN, I think) and the link subsequently ignores...
<!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>Untitled Document</title>
<script src="AC_QuickTime.js" type="text/javascript"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<style type="text/css">
#mediaPlayer {
position:absolute;
z-index:2;
float: left;
left: 485px;
top: 235px;
border: 10;
border-style: double 10px;
border-color: #171717;
display: none
}
</style>
<script type="text/javascript">
function processMouseClickedMovie()
{
// Check if the player exists and is ready.
// Don't use parens with the first GetVolume.
// Assumes you have not previously set the volume to 0.
//
if (document.movie && document.movie.GetVolume && (document.movie.GetVolume() != 0))
{
// The player exists and is ready.
// Now check if mov1.mov is incorrectly playing.
//
if (document.movie.GetURL() == "mov1.mov")
{
// mov1.mov is incorrectly playing.
// Play the correct movie.
//
document.movie.SetURL("mov2.mov");
// Wait 1 second.
// Check again to make sure that mov1.mov is not still playing.
//
setTimeout("processMouseClickedMovie();", 1000);
}
}
else
{
// The player either does not exist yet, or exists and is not ready yet.
// Wait 1 second, and then check again.
//
setTimeout("processMouseClickedMovie();", 1000);
}
}
</script>
</head>
<body>
<!--MediaPlayer-->
<script language="JavaScript" type="text/javascript">
QT
WriteOBJECTXHTML ("mov1.mov", "480", "376", "",
'controller', 'true',
'scale','aspect',
'autoplay','true',
'cache','true',
'emb#bgcolor','#000000',
'obj#bgcolor','',
'SaveEmbedTags','true',
'obj#ID','movie',
'emb#name','movie',
'postdomevents','true',
'EnableJavaScript','true');
</script>
a href="#" onclick="processMouseClickedMovie();">Play mov2 - hopefully</a
</body>
<script type="text/javascript">
$("a").click(function(event){
$('#mediaPlayer').fadeIn(1500);
});
</script>
</html>
Message was edited by: piersp
Message was edited by: piersp