home *** CD-ROM | disk | FTP | other *** search
/ PC Active 2009 March / PCA223.ISO / intface / INHOUD.JS < prev    next >
Encoding:
Text File  |  2009-02-08  |  5.6 KB  |  139 lines

  1. /*
  2. versie 1 inhoudsopgave: AvG
  3. versie 1.5 maart 2003: toevoeging voor DVD
  4. */
  5. // Maand en datum
  6. PCAuitgaveMaand     = "maart";
  7. PCAuitgaveJaar         = "2009";
  8. PCAuitgaveNummer     = "223";
  9.  
  10. // DVD
  11. dvdTip = new Array();
  12. dvdTip[1] = new Array("Een debugger in Javascript", "tip1/index.htm");
  13. dvdTip[2] = new Array("Personaliseer Windows", "tip2/index.htm");
  14. dvdTip[3] = new Array("Inhoudsopgave genereren in Word", "tip3/index.htm");
  15. dvdTip[4] = new Array("Reguliere Expressies in PHP", "tip4/index.htm");
  16. var aantalDvdTips = dvdTip.length - 1;
  17.  
  18. dvdTechno = new Array();
  19. //dvdTechno[1] = new Array("Diashow: GPS met de PDA", "techno1/index.htm");
  20. var aantalDvdTechno = dvdTechno.length - 1;
  21.  
  22. dvdColumn = new Array();
  23. dvdColumn[1] = new Array("Het Lab", "column1/index.htm");
  24. var aantalDvdColumns = dvdColumn.length - 1;
  25.  
  26. dvdEssentials = new Array();
  27. dvdEssentials[1] = new Array("PC Essentials", "essentials/index.htm");
  28. var aantalDvdEssentials = dvdEssentials.length - 1;
  29.  
  30. dvdVrijetijd = new Array();
  31. dvdVrijetijd[1] = new Array("Bioscooptrailers", "filmtrailers1/index.htm");
  32. dvdVrijetijd[2] = new Array("Gametrailers", "gametrailers1/index.htm");
  33. dvdVrijetijd[3] = new Array("Gamedemo's", "gamedemos1/index.htm");
  34. var aantalDvdVrijetijd = dvdVrijetijd.length - 1;
  35.  
  36. dvdEssentials = new Array();
  37. dvdEssentials[1] = new Array("PC Essentials", "essentials/index.htm");
  38. var aantalDvdEssentials = dvdEssentials.length - 1;
  39.  
  40. dvdSelectie = new Array();
  41. dvdSelectie[1] = new Array(" ", "selectie1/index.htm");
  42. dvdSelectie[2] = new Array(" ", "dvd1/index.htm");
  43. dvdSelectie[3] = new Array(" ", "dvd2/index.htm");
  44. var aantalDvdSelecties = dvdSelectie.length - 1;
  45.  
  46. // PC-Active
  47. specialTitel = new Array();
  48. //specialTitel[1] = new Array("DenkWerk: Toverpirouettes", "pca/handson1", "Naar aanleiding van het artikel DenkWerk - Toverpirouettes in het maartnummer van PC-Active, treft u hier de verdere uitleg aan");
  49. // specialTitel[2] = new Array("Denkwerk: Sudoku", "handson2/index.htm", "Ook in Nederland is het spel Sudoku enorm populair. Met de software op de cd-rom lost u de puzzel binnen enkele seconden op!");
  50.  
  51. var aantalHandsOns = specialTitel.length - 1;
  52.  
  53. pcaRubriek = new Array();
  54. pcaRubriek[1] =  new Array("Essentiële software", "pca/tools", "");
  55. pcaRubriek[2] =  new Array("<a href='http://www.pc-active.nl/component/banners/click/150.html' target=WebVenster class=weblink>Jewelcase inlay downloaden (online)</a>", "", "Klik hier om de Jewel Case Inlay te downloaden vanaf onze website");
  56.  
  57. var aantalPCARubrieken = pcaRubriek.length - 1;
  58.  
  59. pcaPopupItem = new Array();
  60. pcaPopupItem[1] = new Array("<a href='http://www.pc-active.nl/component/banners/click/55.html' target=WebVenster class=weblink>Uitslag prijsvragen (online)</a>", "","Klik hier om te kijken of u iets gewonnen heeft in een eerdere prijsvraag");
  61. //pcaPopupItem[2] = new Array("Gratis mailproviders", "mailprov/mailprov.htm", "Gratis mailadres nodig?");
  62. //pcaPopupItem[3] = new Array("Boekendatabase", "boeken.pca", "Korte beschrijvingen van computerboeken, inclusief prijs en isbn.");
  63. var aantalPCAPopupItems = pcaPopupItem.length - 1;
  64.  
  65. // Software
  66. demoTitel = new Array()
  67. demoTitel[1] = "Gratis en volledig TuneUp Utilities 2008";
  68. demoTitel[2] = "SMART-tools voor de harde schijf";
  69. demoTitel[3] = "Windows Live Essentials";
  70. demoTitel[4] = "Internet Explorer 8 RC1 NL";
  71. demoTitel[5] = "Shareware: Recover Keys";
  72. demoTitel[6] = "Shareware: Smart CD Catalog";
  73. demoTitel[7] = "Shareware: NTI Shadow";
  74.  
  75. var aantalDemos = (demoTitel.length - 1 < 10 ? "0" : "") + (demoTitel. length- 1).toString();
  76.  
  77. gameTitel = new Array()
  78. gameTitel[1] = "<b>Win een Commodore Gravel in Pocket mediaspeler ter waarde van € 179,- </b>";
  79.  
  80. var aantalGames = 1;
  81.  
  82. swTitel = new Array()
  83. swTitel[1] = "Shareware Special 1";
  84. swTitel[2] = "Shareware Special 2";
  85.  
  86. var aantalSpecials = 0;
  87.  
  88. function maakBeschrijvingen ()
  89. {    // schrijft de DIV's met beschrijvingen in het PC-Active scherm.
  90.     // moet nog geimplementeerd worden in het Softwarescherm.
  91.     for (var i = 1; i <= aantalHandsOns; i++)
  92.  
  93.     {    omschrijving = eval('specialTitel[' + i + '][2]');
  94.         dw('<div class=__pcaPopup id=popupspecial' + i + '>');
  95.         //dw(omschrijving);
  96.         dw('</div>');
  97.     }
  98.     for (var i = 1; i <= aantalPCARubrieken; i++)
  99.  
  100.     {    omschrijving = eval('pcaRubriek[' + i + '][2]');
  101.         dw('<div class=__pcaPopup id=popuprubriek' + i + '>');
  102.         //dw(omschrijving);
  103.         dw('</div>');
  104.     }
  105.     for (var i = 1; i <= aantalPCAPopupItems; i++)
  106.  
  107.     {    omschrijving = eval('pcaPopupItem[' + i + '][2]');
  108.         dw('<div class=__pcaPopup id=popuppcaPopupItem' + i + '>');
  109.         //dw(omschrijving);
  110.         dw('</div>');
  111.     }
  112. }
  113.  
  114. // =======  Genereren inhoudsopgave  ======= //
  115. function toonInhoud()
  116. {    if (debug)
  117.     {    dbg_functie     = arguments.callee.toString();
  118.         eind            = dbg_functie.indexOf("{") - 1;
  119.         dbg_functieNaam = dbg_functie.substr(0, eind);
  120.         dbg('<b>' + dbg_functieNaam + '</b>')
  121.         for (var i = 0; i < arguments.length; i++)
  122.         {    dbg('<br>   argument ' + i + ': ' + arguments[i])
  123.         }
  124.         dbg('<p>');
  125.     }
  126.     parent.parent.script.inhoud = 1;
  127.     popupWeergave = "resizable=yes,status=no,scrollbars=yes";
  128.     bestand       = "../inhoud.htm";
  129.     popupBreedte  = (screen.width - 640) / 2 - 10;
  130.     popupHoogte   = 480;
  131.     inhoudTop     = PCAinterfaceY;
  132.     inhoudLinks   = PCAinterfaceX - popupBreedte - 10;
  133.     if (debug)
  134.     {    schrijfDebugMelding('popupBreedte: ' + popupBreedte);
  135.         schrijfDebugMelding('inhoudLinks: ' + inhoudLinks);
  136.         schrijfDebugMelding('PositieY: ' + PositieY);
  137.     }
  138.     inhoudVenster = window.open(bestand, "Inhoudsopgave", "width=" + popupBreedte + ",height=" + popupHoogte + "," + PositieY + "=" + inhoudTop + "," + PositieX + "=" + inhoudLinks + popupWeergave)
  139. }