ECLIPSE CROSSWORD EN ESPAGNOL
Le logiciel
"Eclipse Crossword" (LIEN
pour le télécharger) permet de faire des mots croisés,
mais les consignes sont en anglais.
Pour
les mettre en espagnol, vous devez d'abord faire votre grille avec le
logiel, l'enregistrer au format .html, l'ouvrir ensuite dans un éditeur
de pages html, ou bien lorsqu'elle s'affiche dans votre navigateur, allez
chercher le CODE SOURCE de la page.
- Avec FIREFOX : outils >>>Développeur web >>>Code
source de la page>>>enregistrez-le
- Avec Chrome : cliquez sur la clé en haut à droite >>>Outils
>>> afficher la source
- Avec Internet Explorer : je n'en sais rien car je ne l'utilise plus
depuis bien longtemps.
Sélectionnez
tout le texte ci-dessous, copiez-le.
Dans la page "code source" À l'aide de la fonction "rechercher
remplacer", allez chercher : "Across, "
Sélectionnez le texte qui se trouve à partir de là,
effacez-le.
Copiez (CTRL+V) le texte que vous avez copié au préalable.
Vérifiez si des séries de ???? ne se sont pas glissées
dans le texte (ça arrive), supprimez-les.
Les consignes de votre grille de mots croisés sont maintenant
en espagnol.
voir un exemple
CODE à SÉLECTIONNER et COPIER
Horizontalmente, " : "Verticalmente, ") + WordLength[CurrentWord]
+ " letters.";
document.getElementById("wordclue").innerHTML = Clue[CurrentWord];
document.getElementById("worderror").style.display = "none";
document.getElementById("cheatbutton").style.display = (Word.length
== 0) ? "none" : "";
if (TheirWordLength == WordLength[CurrentWord])
document.getElementById("wordentry").value = TheirWord;
else
document.getElementById("wordentry").value = "";
// Finally, show the answer box.
document.getElementById("answerbox").style.display = "block";
try
{
document.getElementById("wordentry").focus();
document.getElementById("wordentry").select();
}
catch (e)
{
}
}
// Called when the user clicks the OK link.
function OKClick()
{
var TheirWord, x, y, i, TableCell;
if (CrosswordFinished) return;
if (document.getElementById("okbutton").disabled) return;
// First, validate the entry.
TheirWord = document.getElementById("wordentry").value.toUpperCase();
if (TheirWord.length == 0)
{
DeselectCurrentWord();
return;
}
if (ContainsBadChars(TheirWord))
{
document.getElementById("worderror").innerHTML = "Por favor,
teclea solamente letras.";
document.getElementById("worderror").style.display = "block";
return;
}
if (TheirWord.length < WordLength[CurrentWord])
{
document.getElementById("worderror").innerHTML = "No ha
tecleado suficientes letras. Esta palabra tiene " + WordLength[CurrentWord]
+ " letras.";
document.getElementById("worderror").style.display = "block";
return;
}
if (TheirWord.length > WordLength[CurrentWord])
{
document.getElementById("worderror").innerHTML = "Ha tecleado
demasiadas letras. Esta palabra tiene " + WordLength[CurrentWord]
+ " letras.";
document.getElementById("worderror").style.display = "block";
return;
}
// If we made it this far, they typed an acceptable word, so add these
letters to the puzzle and hide the entry box.
x = WordX[CurrentWord];
y = WordY[CurrentWord];
for (i = 0; i < TheirWord.length; i++)
{
TableCell = CellAt(x + (CurrentWord <= LastHorizontalWord ? i : 0),
y + (CurrentWord > LastHorizontalWord ? i : 0));
TableCell.innerHTML = TheirWord.substring(i, i + 1);
}
DeselectCurrentWord();
}
// Called when the "check puzzle" link is clicked.
function CheckClick()
{
var i, j, x, y, UserEntry, ErrorsFound = 0, EmptyFound = 0, TableCell;
if (CrosswordFinished) return;
DeselectCurrentWord();
for (y = 0; y < CrosswordHeight; y++)
for (x = 0; x < CrosswordWidth; x++)
if (TableAcrossWord[x][y] >= 0 || TableDownWord[x][y] >= 0)
{
TableCell = CellAt(x, y);
if (TableCell.className == "ecw-box ecw-boxerror_unsel") TableCell.className
= "ecw-box ecw-boxnormal_unsel";
}
for (i = 0; i < Words; i++)
{
// Get the user's entry for this word.
UserEntry = "";
for (j = 0; j < WordLength[i]; j++)
{
if (i <= LastHorizontalWord)
TableCell = CellAt(WordX[i] + j, WordY[i]);
else
TableCell = CellAt(WordX[i], WordY[i] + j);
if (TableCell.innerHTML.length > 0 && TableCell.innerHTML.toLowerCase()
!= " ")
{
UserEntry += TableCell.innerHTML.toUpperCase();
}
else
{
UserEntry = "";
EmptyFound++;
break;
}
}
// If this word doesn't match, it's an error.
if (HashWord(UserEntry) != AnswerHash[i] && UserEntry.length >
0)
{
ErrorsFound++;
ChangeWordStyle(i, "ecw-box ecw-boxerror_unsel");
}
}
// If they can only check once, disable things prematurely.
if ( OnlyCheckOnce )
{
CrosswordFinished = true;
document.getElementById("checkbutton").style.display = "none";
}
// If errors were found, just exit now.
if (ErrorsFound > 0 && EmptyFound > 0)
document.getElementById("welcomemessage").innerHTML = ErrorsFound
+ (ErrorsFound > 1 ? " errores" : " error") + "
et " + EmptyFound + (EmptyFound > 1 ? " palabras incompletas
encontradas" : " palabra incompleta encontrada") + "
found.";
else if (ErrorsFound > 0)
document.getElementById("welcomemessage").innerHTML = ErrorsFound
+ (ErrorsFound > 1 ? " errores encontrados " : " error
encontrado ") + " ";
else if (EmptyFound > 0)
document.getElementById("welcomemessage").innerHTML = "No
hay error pero hay " + EmptyFound + (EmptyFound > 1 ? " palabras
incompletas " : " palabra incompleta ") + " ";
if (ErrorsFound + EmptyFound > 0)
{
document.getElementById("welcomemessage").style.display = "";
return;
}
// They finished the puzzle!
CrosswordFinished = true;
document.getElementById("checkbutton").style.display = "none";
document.getElementById("congratulations").style.display = "block";
document.getElementById("welcomemessage").style.display = "none";
}
// Called when the "cheat" link is clicked.
function CheatClick()
{
if (CrosswordFinished) return;
var OldWord = CurrentWord;
document.getElementById("wordentry").value = Word[CurrentWord];
OKClick();
ChangeWordStyle(OldWord, "ecw-box ecw-boxcheated_unsel");
}
// Returns a one-way hash for a word.
function HashWord(Word)
{
var x = (Word.charCodeAt(0) * 719) % 1138;
var Hash = 837;
var i;
for (i = 1; i <= Word.length; i++)
Hash = (Hash * i + 5 + (Word.charCodeAt(i - 1) - 64) * x) % 98503;
return Hash;
}
//-->
</script>
</table></td>
<td valign="top" style="padding-left: 1em;">
<div class="ecw-copyright">
<a href="http://www.eclipsecrossword.com/" target="_blank"
style="font-weight: bold;">EclipseCrossword</a> ©
2000-2007
</div>
<div id="welcomemessage" class="ecw-answerbox"
style="display:none;">
<h3>¡ Bienvenido/a !</h3>
<p>Haga clic en una casilla para empezar.</p>
</div>
<div id="answerbox" class="ecw-answerbox" style="display:none;">
<h3 id="wordlabel" class="ecw-wordlabel">
</h3>
<div id="wordinfo" class="ecw-wordinfo"> </div>
<div id="wordclue" class="ecw-cluebox"> </div>
<div style="margin-top: 1em;">
<input class="ecw-input" id="wordentry" type="text"
size="24" style="font-weight: bold; text-transform:uppercase;"
onkeypress="WordEntryKeyPress(event)" onchange="WordEntryKeyPress(event)"
autocomplete="off" />
</div>
<div id="worderror" class="ecw-worderror"></div>
<table border="0" cellspacing="0" cellpadding="0"
width="100%" style="margin-top:1em;"><tbody><tr><td>
<button id="cheatbutton" type="button" class="ecw-input
ecw-button" onclick="CheatClick();">solución</button>
</td><td align="right">
<button id="okbutton" type="button" class="ecw-input
ecw-button" onclick="OKClick();" style="font-weight:
bold;">OK</button>
<button id="cancelbutton" type="button" class="ecw-input
ecw-button" onclick="DeselectCurrentWord();">anular</button>
</td></tr></tbody></table>
</div>
<div id="congratulations" class="ecw-answerbox"
style="display:none;">
<h3>¡ Felicidades !</h3>
<p>Ha terminado.</p>
</div>
</td></tr></table>
<div style="margin-top: 1em;">
<button id="checkbutton" type="button" onclick="CheckClick();"
style="display: none;">
<p align="center">VERIFICAR</p>
</button>
</div>
<script language="JavaScript" type="text/javascript"><!--
BeginCrossword();
//-->
</script>
<!-- Created with EclipseCrossword, (C) Copyright 2000-2007 Green
Eclipse. eclipsecrossword.com -->
</body></html> |