KD-one: wieso findet er das Objekt nicht?

Beitrag lesen

Hallo Newbie,

Versuch's mal so:

<html>
  <head>
 <script language="JavaScript" type="text/JavaScript">

function show(id)
  {
   if(window.opera || (document.getElementById && !document.all))
     {
       document.getElementById(id).style.visibility = "visible";
     }
    else if(document.all)
     {
         document.all[id].style.visibility = 'visible';
     }
  }
 </script>
  </head>
  <body>
   <a href="javascript:show(Video1)">Show</a><br>
   <br>
 <div id="Video1" name="Video1" style="position:absolute; width:300px; height:300px; visibility: hidden;">
   <iframe src="" id="i1" width="324" height="290" name="i1"></iframe>
 </div>

</body>
 </html>

Gruß

Kurt

--
"Der Erfolg zaehlt. Die Misserfolge werden gezaehlt."  (Nikolaus Cybinski; dt. Aphoristiker; geb. 1936)
http://elektro-dunzinger.at
http://shop.elektro-dunzinger.at