home *** CD-ROM | disk | FTP | other *** search
/ Mobility 2005 May / Mobility_2005-05_cd.bin / ex.js < prev    next >
Encoding:
Text File  |  2004-04-07  |  1.0 KB  |  39 lines

  1.  
  2. function Swap(num)
  3. {
  4.   var x = document.getElementById('text' + num).style.display;
  5.   if (x == 'block') {
  6.       document.getElementById('text' + num).style.display = 'none';
  7.        document.getElementById('obr' + num).style.display = 'none';
  8.     document.getElementById('ikona' + num).src = '../vyrezy/plus.gif';
  9.     }
  10.   else {
  11.       document.getElementById('text' + num).style.display = 'block';
  12.     document.getElementById('obr' + num).style.display = 'block';
  13.     document.getElementById('ikona' + num).src = '../vyrezy/minus.gif';
  14.     }
  15. }
  16.  
  17.   function instalovat(prog)
  18.   {
  19.     var Cesta = document.location;
  20.     Cesta = Cesta.toString();
  21.     var index = Cesta.lastIndexOf("/");
  22.     Cesta = Cesta.substring(0,index);
  23.     
  24.     index = Cesta.lastIndexOf("/");
  25.     Cesta = Cesta.substring(0,index);
  26.  
  27.     var z = prog.toString();
  28.     z = z.substring(0,1)
  29.     if (z=="/") {
  30.         Program = Cesta + prog;
  31.     } else {
  32.         Program = Cesta + "/" + prog;
  33.     }
  34.  
  35. // alert(Program)
  36.  
  37.    window.open(Program, "", "")
  38.   }
  39.