home *** CD-ROM | disk | FTP | other *** search
- /*
- versie 1.0 : Andre van Groenestein
- versie 1.5 : - algemene scripts verzameld in interactie.js
- */
-
- function PopupVenster(nummer, soort)
- { Item = eval(soort + nummer);
- ItemTitel = titel[nummer];
- PopupBreedte = 450;
- PopupLengte = 240;
- PCAinterfaceX = (screen.availWidth - PopupBreedte) / 2 - 5;
- PCAinterfaceY = ((screen.availHeight - PopupLengte) / 2) - 19;
- if (soort == 'web')
- { PopupLengte = 100;
- PopupBreedte = Item.length * 7 + 65;
- }
- PopupWeergave = "resizable=no,status=no,scrollbars=no";
- if ((Item.length * 0.5) + 85 > 300)
- { PopupWeergave = PopupWeergaveScroll;
- // wordt gebruikt in window.open() functie. Bug in NS6:
- // als slechts een venster wordt geopend, dus zonder bestand in te laden:
- // window.open(""), worden toch geen scrollbars getoond. Wordt wel een
- // bestand ingeladen: window.open("bestand"), dan verschijnen er
- // wel scrollbars, maar pas als ze werkelijk nodig zijn...
- }
- if (soort == 'inst')
- { if (Item.lastIndexOf(".pca", Item.length - 1) != -1)
- window.location.href = Item;
- else if (Item.lastIndexOf(".htm", Item.length - 1) != -1)
- lokaalVenster = window.open(Item, "lokaalvenster", "width=400,height=200,top=" + PCAinterfaceY + ",left=" + PCAinterfaceX + ",resizable=no,status=no,scrollbars=no")
-
- parent.parent.script.PauzeerMuziek();
- }
- else
- { Bestand = "";
- lokaalVenster = window.open(Bestand, "lokaalvenster", "width=" + PopupBreedte + ",height=" + PopupLengte + "," + PositieY + "=" + PCAinterfaceY + "," + PositieX + "=" + PCAinterfaceX + PopupWeergave);
- PopupWeergave = "resizable=no,status=no,scrollbars=no";
- SchrijfInhoud(Item, ItemTitel);
- }
- }
-
- function SchrijfInhoud(Item, ItemTitel)
- { ldw('<html><head><title>Informatie</title>');
- ldw('<link rel="STYLESHEET" type="text/css" href="../../cdrom.css">');
- ldw('<link rel="STYLESHEET" type="text/css" href="../pcactive.css">');
- ldw('<script type="text/javascript" src="../popupsSluiten.js"></script>');
- ldw('</head>');
- ldw('<body background="../images/pcinfobk.gif">');
- ldw('<table cellspacing=0 cellpadding=0>');
- ldw('<tr><td width=30> </td>');
- ldw('<td><br>');
- if (Item.substring(0, 4) == 'http')
- ldw('<center><a class=weblink href="' + Item + '" target=WebVenster>' + Item + '</a></center>');
- else
- { ldw('<b>' + ItemTitel + '</b><p>');
- ldw(Item);
- }
- ldw('</td></tr></table>');
- ldw('</body></html>');
- }
-
-