Martin Grünkern: Checkbox DIV einblenden (Flash)

Beitrag lesen

Hallo Gernot & afra,

nochmal genau.

Ich möchte diese Ebene
<div id="sListe1" style="display:none;"><input name="input" type="text"></div>
ein- bzw. ausblenden

Mit der Checkbox
<input type="Checkbox" name="cListe1" value="Liste1" onClick="showList(0)">LALALA

Ohne dieses Flash geht es
<div id="flash">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="430" height="40">
<param name="movie" value="swf/headline430x40-hexFFBE0A.swf?headline=text">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<embed src="swf/headline430x40-hexFFBE0A.swf?headline=text" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="430" height="40"></embed>
</object></div>

Mit dem Flash geht es nicht ;-(((

Was soll ich genau im Quellcode ändern, damit es mit Flash geht???

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Test</title>
<script language="JavaScript">
<!--
function showList(feld) {
    if(feld=='0') {var f_id='sListe1';}
    if (document.formular.elements[feld].checked == true) {
      document.getElementById(f_id).style.display='';
    }
    else{
      document.getElementById(f_id).style.display='none';
    }
  }
//-->
</script>
</head>
<body>
<form name="formular">
<div id="flash">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="430" height="40">
<param name="movie" value="swf/headline430x40-hexFFBE0A.swf?headline=text">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<embed src="swf/headline430x40-hexFFBE0A.swf?headline=text" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="430" height="40"></embed>
</object></div>
<input type="Checkbox" name="cListe1" value="Liste1" onClick="showList(0)">Liste1 &nbsp;
<div id="sListe1" style="display:none;"><input name="input" type="text"></div>
</form>
</body>
</html>

Gruß
MG