Hello !
I'm trying to use hype for digital comics and stories, and I wanted that the reader should answer a riddle to continue the story.
I'm not a programmer so I find bits of code and paste them as I can.
I found this :
<script language="JavaScript"> function passe() { var mot=document.form1.passew.value
if (mot=="toto") { window.location="toto.htm"; } else{ if(mot=="toto2"){window.location="toto2.htm"; } else {alert("Mauvais mot de passe"); } } } </script>
<form name="form1">
<input type="text" id="passew" name="passew" style="font-size: 30px; border-style: none; background-color: lightyellow; color: black; padding: 5px;" size="9" fontsize:30px=""> <input type="button" value="Entrer" onclick="passe()"> </form>
I first putted it in a widget, but it did not work, then I have put it in a rectangle and it did !
But when I have tried to replace
window.location="toto.htm";
by
hypeDocument.showNextScene(hypeDocument.kSceneTransitionCrossfade, 1.1);
I didn' work again....
I have also tried puting the javascript function in the functions of skype and calling it from a button (that would be my best choice) but again, it didn't work....
I guess I should change
var mot=document.form1.passew.value
by getelementbyid but I wasn't able to porperly do it....
Can someone help me ?