From 48d0128c65177a8adf58810c9a740cff3b42f626 Mon Sep 17 00:00:00 2001 From: Luk Vanlanduyt Date: Thu, 30 Nov 2006 16:11:33 +0100 Subject: [PATCH] [svn r10277] javascript for hotspots --- main/plugin/hotspot/hotspot.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/main/plugin/hotspot/hotspot.js b/main/plugin/hotspot/hotspot.js index 16378b23d9..2f08a49ca3 100644 --- a/main/plugin/hotspot/hotspot.js +++ b/main/plugin/hotspot/hotspot.js @@ -1,19 +1,20 @@ // in je FORM-tag voor de hotspots: onSubmit="return validateFlashVar('MINIMUM_AANTAL_CLICKS'); -var flashVar = 0; +var flashVar = 1; var lcId = new Date().getTime(); //var flashProxy = new FlashProxy(lcId, "JavaScriptFlashGateway.swf"); function validateFlashVar(counter, lang_1, lang_2) { + return true; //alert(counter); //alert(flashVar); - if(counter == flashVar) + if(counter != flashVar) { - alert (lang_1 + counter + lang_2); - alert(lang_1); + alert(lang_1 + counter + lang_2); + return false; } else @@ -24,7 +25,7 @@ function validateFlashVar(counter, lang_1, lang_2) function updateFlashVar() { - alert('updateFlashVar: ' + flashVar); + //alert('updateFlashVar: ' + flashVar); flashVar++; }