home *** CD-ROM | disk | FTP | other *** search
- var theBlendPict = "";
- var blendTimer;
- var timerSet = false;
-
- var moduleData = new ActiveXObject("Microsoft.XMLDOM");
- moduleData.load("data/menu.xml");
- var moduleRoot = moduleData.documentElement;
-
- function showPage() {
- buildPage();
- parent.goPage = 'menu.html';
- AppScreen.style.visibility = "visible";
- }
-
- function buildPage() {
- optieWriteString = '';
- for (var i=0; i<moduleRoot.selectNodes("optie").length; i++) {
- optieWriteString += '<div id="MmBtn" url="' + moduleRoot.selectNodes("optie")[i].getAttribute("url") + '" num="' + i + '" style="top:'+ (i*56) +'px" pict="images/' + moduleRoot.selectNodes("optie")[i].getAttribute("pict") + '">';
- optieWriteString += '<img id="MmImg" src="images/' + moduleRoot.selectNodes("optie")[i].getAttribute("img") + '">';
- // optieWriteString += '<div id="MmTitel">' + moduleRoot.selectNodes("optie")[i].selectSingleNode("titel").text + '</div>';
- optieWriteString += '<div id="MmText">' + moduleRoot.selectNodes("optie")[i].selectSingleNode("text").text + '</div>';
- optieWriteString += '</div>';
- }
- OptieArea.innerHTML = optieWriteString;
- }
-
- function doBlend(type) {
- if ((blendTimer) && (timerSet)) {
- clearTimeout(blendTimer);
- timerSet = false;
- }
- if (type == 1) {
- ImgArea.filters.blendTrans.Apply();
- ImgArea.src = theBlendPict;
- ImgArea.filters.blendTrans.Play();
- }
- else ImgArea.src = theBlendPict;
- }
-
-
-