Retrouver l'id d'un flash
Bonjour,
Je sèche depuis plus d'une heure et je ne trouve toujours pas d'ou vient mon problème, j'ai un flash dans ma page et j'essaye de lui assigner un id, mais rien à faire.
Je sais que c'est tout bête mais rien à faire :(:(
Voici mon code :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <!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 language="Javascript">
function fullScreen()
{
alert(document.getElementById('lecteur'));
document.getElementById('lecteur').pleinEcran();
}
</script>
<script src="AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','320','height','240','src','lecteur','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','allowfullscreen','true','movie','lecteur','id','lecteur' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="320" height="240" id="lecteur">
<param name="movie" value="lecteur.swf" />
<param name="quality" value="high" />
<param name="allowFullScreen" value="true" />
<embed src="lecteur.swf" width="320" height="240" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" allowfullscreen="true" id="lecteur"></embed>
</object>
</noscript>
<br />
<a href="#" onClick="javascript:fullScreen();">plein écran</a>
</body>
</html> |
Quand j'appelle ma fonction fullScreen, j'ai document.getElementById('lecteur') à null.
Merci pour vos lumière.