“il catenaccio” n°6

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><head> <title></title> <meta name="generator" content="CateneByAlvin" /> <style type="text/css"><!-- body, h1, h2, h3, h4, h5, h6 { font-family: Segoe UI, Franklin Gothic Medium, Arial, sans-serif; } h1, h2, h3, h4, h5, h6 { color: #5d6a86; } body { cursor: default; font-size: small; } .aspo-answerbox { color: black; background-color: #FFFAF0; border-color: #808080; border-style: solid; border-width: 1px; display: block; padding: .1em; width: 167pt; } .aspo-box { border-style: solid; border-width: 1pt; cursor: pointer; font-size: .10in; font-weight: bold; height: .14in; overflow: hidden; text-align: center; width: .14in; } .aspo-boxcheated_sel { background-color: #FFF1D7; border-color: #C00000; color: #2080D0; } .aspo-boxcheated_unsel { background-color: #ffffff; border-color: #606060; color: #2080D0; } .aspo-boxerror_sel { background-color: #FFF1D7; border-color: #C00000; color: #BF0000; } .aspo-boxerror_unsel { background-color: #FFF0F0; border-color: #606060; color: #BF0000; } .aspo-boxnormal_sel { background-color: #FFF1D7; border-color: #C00000; color: #000000; } .aspo-boxnormal_unsel { background-color: #ffffff; border-color: #606060; color: #000000; } .aspo-button { width: 36pt; } .aspo-cluebox { border-bottom-width: 1px; border-color: #c0c0c0; border-left-width: 0px; border-right-width: 0px; border-style: solid; border-top-width: 1px; margin-top: .1em; padding-bottom: .1em; padding-left: 0pt; padding-right: 0pt; padding-top: .1em; } .aspo-crosswordarea { background-color: #FFFACD; border-color: #808080; border-style: solid; border-width: 2px; padding: .1em; font-family: Segoe UI, Verdana, Arial, sans-serif; font-size: small; } <!--commento background-color: #F9F5F5; codici colore: silver C0C0C0, gray 808080, maroon 800000, green 008000, navy 000080, purple 800080, olive 808000, teal 008080, white FFFFFF, black 000000, red FF0000, lime 00FF00, blue 0000FF, magenta FF00FF, yellow FFFF00, cyan 00FFFF background-color: #008000; background-image: -moz-linear-gradient(top right, #FFFFFF 0%, #AACFEF 100%); x gradiente che non funziona con explorer end commento--> .aspo-copyright { margin-bottom: 1em; font-size: small; font-family: Segoe UI, Franklin Gothic Medium, Arial, sans-serif; } .aspo-sponsor { margin-bottom: 1em; font-size: medium; font-family: Arial black, Segoe UI, Franklin Gothic Medium, Arial, sans-serif; } .aspo-input { font-family: Segoe UI, Franklin Gothic Medium, Arial, sans-serif; } .aspo-wordlabel { text-transform: uppercase; margin: 0; } .aspo-wordinfo { font-size: 8pt; color: #808080; } .aspo-worderror { color: #c00000; font-weight: bold; display: none; margin-top: 1em; } --></style> </head><body> <h1></h1> <h3 style="margin-top: -1em;"></h3> <div id="waitmessage"> Il game non sta funzionando correttamente. </div> <table cellpadding="0" cellspacing="0" border="0"><tr> <td><table id="crossword" cellpadding="0" cellspacing="0" style="display: none; border-collapse: collapse;"> <center> <h2>SPARTANO -BAR -SOMMO</h2> <h2>VATICANO- LIQUIDO</h2> <h2>PIANETA - DONSAURO</h2> </center> <center> <img src= http://i39.servimg.com/u/f39/16/47/95/89/catena10.jpg style="max-width:400px;max-height:300px;" </center> <!-- **** qui inserire di definizioni che inizia con <script ;--> <script type="text/javascript"><!-- CrosswordWidth = 9; CrosswordHeight = 6; Words = 6; WordLength = new Array(5, 5, 9, 5, 6, 9); Word = new Array("  E  ", "     ", "         ", "     ", "V     ", "P        "); Clue = new Array("Tra: Spartano - Bar", "Tra: Bar - Sommo", "Tra: Sommo - Vaticano", "Tra: Vaticano - Liquido", "Tra: Liquido - Pianeta", "Tra: Pianeta - DonSauro"); AnswerHash = new Array(35757, 31737, 54167, 41028, 12285, 9450); WordX = new Array(0, 0, 0, 0, 0, 0); WordY = new Array(0, 1, 2, 3, 4, 5); LastHorizontalWord = 5; OnlyCheckOnce = false; //--> </script> <!-- info per dare gli aiuti Tra WordLength e Clue = new Array del blocco qui sopra inserire a) la prima riga sotto se game senza aiuti, b) la seconda se con aiutino lettera iniziale c) la terza con soluzione completa sul pulsante aiuto Word = new Array(); Word = new Array("  E  ", "     ", "         ", "     ", "V     ", "P        "); Word = new Array("GRECO", "DANTE", "PONTEFICE", "STATO", "VENERE", "PARAMENTO"); --> <!-- lo script definizioni finisce con </script>--> <script type="text/javascript"><!-- // AlvinCrossword (C) Copyright feb2014. // www.Alvincrossword.com var BadChars = "`~!@^*()_={[}]\|:;\"',<.>/?"; var TableAcrossWord, TableDownWord; var CurrentWord, PrevWordHorizontal, x, y, i, j; var CrosswordFinished, Initialized; // Check the user's browser and then initialize the puzzle. if (document.getElementById("waitmessage") != null) { document.getElementById("waitmessage").innerHTML = "Attendi il caricamento delle definizioni..."; // Current game variables CurrentWord = -1; PrevWordHorizontal = false; // Create the cell-to-word arrays. TableAcrossWord = new Array(CrosswordWidth); for (var x = 0; x < CrosswordWidth; x++) TableAcrossWord[x] = new Array(CrosswordHeight); TableDownWord = new Array(CrosswordWidth); for (var x = 0; x < CrosswordWidth; x++) TableDownWord[x] = new Array(CrosswordHeight); for (var y = 0; y < CrosswordHeight; y++) for (var x = 0; x < CrosswordWidth; x++) { TableAcrossWord[x][y] = -1; TableDownWord[x][y] = -1; } // First, add the horizontal words to the puzzle. for (var i = 0; i <= LastHorizontalWord; i++) { x = WordX[i]; y = WordY[i]; for (var j = 0; j < WordLength[i]; j++) { TableAcrossWord[x + j][y] = i; } } // Second, add the vertical words to the puzzle. for (var i = LastHorizontalWord + 1; i < Words; i++) { x = WordX[i]; y = WordY[i]; for (var j = 0; j < WordLength[i]; j++) { TableDownWord[x][y + j] = i; } } // Now, insert the row HTML into the table. for (var y = 0; y < CrosswordHeight; y++) { document.writeln("<tr>"); for (var x = 0; x < CrosswordWidth; x++) { if (TableAcrossWord[x][y] >= 0 || TableDownWord[x][y] >= 0) document.write("<td id=\"c" + PadNumber(x) + PadNumber(y) + "\" class=\"aspo-box aspo-boxnormal_unsel\" onclick=\"SelectThisWord(event);\">&nbsp;</td>"); else document.write("<td></td>"); } document.writeln("</tr>"); } // Finally, show the crossword and hide the wait message. Initialized = true; document.getElementById("waitmessage").style.display = "none"; document.getElementById("crossword").style.display = "block"; } // ---------- // Event handlers // Raised when a key is pressed in the word entry box. function WordEntryKeyPress(event) { if (CrosswordFinished) return; // Treat an Enter keypress as an OK click. if (CurrentWord >= 0 && event.keyCode == 13) OKClick(); } // ---------- // Helper functions // Called when we're ready to start the crossword. function BeginCrossword() { if (Initialized) { document.getElementById("welcomemessage").style.display = ""; document.getElementById("checkbutton").style.display = ""; } } // Returns true if the string passed in contains any characters prone to evil. function ContainsBadChars(theirWord) { for (var i = 0; i < theirWord.length; i++) if (BadChars.indexOf(theirWord.charAt(i)) >= 0) return true; return false; } // Pads a number out to three characters. function PadNumber(number) { if (number < 10) return "00" + number; else if (number < 100) return "0" + number; else return "" +  number; } // Returns the table cell at a particular pair of coordinates. function CellAt(x, y) { return document.getElementById("c" + PadNumber(x) + PadNumber(y)); } // Deselects the current word, if there's a word selected.  DOES not change the value of CurrentWord. function DeselectCurrentWord() { if (CurrentWord < 0) return; var x, y, i; document.getElementById("answerbox").style.display = "none"; ChangeCurrentWordSelectedStyle(false); CurrentWord = -1; } // Changes the style of the cells in the current word. function ChangeWordStyle(WordNumber, NewStyle) { if (WordNumber< 0) return; var x = WordX[WordNumber]; var y = WordY[WordNumber]; if (WordNumber<= LastHorizontalWord) for (i = 0; i < WordLength[WordNumber]; i++) CellAt(x + i, y).className = NewStyle; else for (i = 0; i < WordLength[WordNumber]; i++) CellAt(x, y + i).className = NewStyle; } // Changes the style of the cells in the current word between the selected/unselected form. function ChangeCurrentWordSelectedStyle(IsSelected) { if (CurrentWord < 0) return; var x = WordX[CurrentWord]; var y = WordY[CurrentWord]; if (CurrentWord <= LastHorizontalWord) for (i = 0; i < WordLength[CurrentWord]; i++) CellAt(x + i, y).className = CellAt(x + i, y).className.replace(IsSelected ? "_unsel" : "_sel", IsSelected ? "_sel" : "_unsel"); else for (i = 0; i < WordLength[CurrentWord]; i++) CellAt(x, y + i).className = CellAt(x, y + i).className.replace(IsSelected ? "_unsel" : "_sel", IsSelected ? "_sel" : "_unsel"); } // Selects the new word by parsing the name of the TD element referenced by the // event object, and then applying styles as necessary. function SelectThisWord(event) { if (CrosswordFinished) return; var x, y, i, TheirWord, TableCell; // Deselect the previous word if one was selected. document.getElementById("welcomemessage").style.display = "none"; if (CurrentWord >= 0) OKClick(); DeselectCurrentWord(); // Determine the coordinates of the cell they clicked, and then the word that // they clicked. var target = (event.srcElement ? event.srcElement: event.target); x = parseInt(target.id.substring(1, 4), 10); y = parseInt(target.id.substring(4, 7), 10); // If they clicked an intersection, choose the type of word that was NOT selected last time. if (TableAcrossWord[x][y] >= 0 && TableDownWord[x][y] >= 0) CurrentWord = PrevWordHorizontal ? TableDownWord[x][y] : TableAcrossWord[x][y]; else if (TableAcrossWord[x][y] >= 0) CurrentWord = TableAcrossWord[x][y]; else if (TableDownWord[x][y] >= 0) CurrentWord = TableDownWord[x][y]; PrevWordHorizontal = (CurrentWord <= LastHorizontalWord); // Now, change the style of the cells in this word. ChangeCurrentWordSelectedStyle(true); // Then, prepare the answer box. x = WordX[CurrentWord]; y = WordY[CurrentWord]; TheirWord = ""; var TheirWordLength = 0; for (i = 0; i < WordLength[CurrentWord]; i++) { // Find the appropriate table cell. if (CurrentWord <= LastHorizontalWord) TableCell = CellAt(x + i, y); else TableCell = CellAt(x, y + i); // Add its contents to the word we're building. if (TableCell.innerHTML != null && TableCell.innerHTML.length > 0 && TableCell.innerHTML != " " && TableCell.innerHTML.toLowerCase() != "&nbsp;") { TheirWord += TableCell.innerHTML.toUpperCase(); TheirWordLength++; } else { TheirWord += "&bull;"; } } document.getElementById("wordlabel").innerHTML = TheirWord; 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 = "Caratteri non validi! - Ok a lettere e numeri"; document.getElementById("worderror").style.display = "block"; return; } if (TheirWord.length < WordLength[CurrentWord]) { document.getElementById("worderror").innerHTML  = "troppo corta "; document.getElementById("worderror").style.display = "block"; return; } if (TheirWord.length > WordLength[CurrentWord]) { document.getElementById("worderror").innerHTML = "Troppo lunga!"; 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 == "aspo-box aspo-boxerror_unsel") TableCell.className = "aspo-box aspo-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() != "&nbsp;") { 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, "aspo-box aspo-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 ? " errori" : " errore") + " e " + EmptyFound + (EmptyFound > 1 ? " righe incomplete" : " riga incompleta") + " "; else if (ErrorsFound > 0) document.getElementById("welcomemessage").innerHTML = ErrorsFound + (ErrorsFound > 1 ? " errori" : " errore") + " "; else if (EmptyFound > 0) document.getElementById("welcomemessage").innerHTML = "No errori, " + EmptyFound + (EmptyFound > 1 ? " righe incomplete" : " riga 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, "aspo-box aspo-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><b>IL CATENACCIO </b> <font size="1">  - by Alvin &copy;06/14</div> <h2>6 / 10</h2> <font size="1"> <div>Tra una parola e l'altra inserirne una</div> <div>terza che sia sinonimo o contrario o</div> <div>abbia una correlazione logica con le</div> <div>altre, tenuto conto che alcune parole</div> <div>hanno attinenza con Apecchio</div> </font> <p> <font color=”FF0000”> <div><b>CENTROSPESA</b> offrirà al vincitore 15 €</div> <div>di sconto su una spesa di oltre 50 € </div> </font> <img src= http://i56.servimg.com/u/f56/16/47/95/89/logo_c12.jpg style="max-width:225px;max-height:200px;" <!--commento codici colore: silver C0C0C0, gray 808080, maroon 800000, green 008000, navy 000080, purple 800080, olive 808000, teal 008080, white FFFFFF, black 000000, red FF0000, lime 00FF00, blue 0000FF, magenta FF00FF, yellow FFFF00, cyan 00FFFF end commento--> <!--righe commento: sponsor alternativi Gioco offerto da: Market SISA COLLESI CIRO Gioco offerto da: andreasponticcia.weebly.com Questo gioco è offerto da: COMMERCIALE FAS end righe commento sponsor alternativi --> <div id="welcomemessage" style="display:none;"> </div> <div id="answerbox" style="display:none;"> <h3 id="wordlabel">&nbsp; </h3> <div id="wordinfo"> </div> <div id="wordclue"> </div> <div style="margin-top: 1em;"> <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"></div> <table border="0" cellspacing="0" cellpadding="0" width="100%" style="margin-top:1em;"><tbody><tr><td> <button id="cheatbutton" type="button" onclick="CheatClick();">aiuto</button> </td><td align="right"> <button id="okbutton" type="button" onclick="OKClick();" style="font-weight: bold;">OK</button> &nbsp; <button id="cancelbutton" type="button" onclick="DeselectCurrentWord();">Canc</button> </td></tr></tbody></table> </div> <div id="congratulations" style="display:none;"> <center> <h3>CONGRATULAZIONI!</h3> <div>Se vuoi concorrere al premio finale</div> <div>annota questa sigla <b>CA6-ENN</b> Dal</div> <div>11-Set puoi inviarla ad apecchio.net</div> <div>e partecipare al Premio Sorpresa</div> <div><b>LEGGI IL REGOLAMENTO!</b></div> </center) <!--codicillo: terza lettera delle prime 3 soluzioni --> </p> </div> </td></tr></table> <div style="margin-top: .1em;"> <button id="checkbutton" type="button" onclick="CheckClick();" style="display: none;">vedi</button> </div> <script language="JavaScript" type="text/javascript"><!-- BeginCrossword(); //--> </script> </body></html>

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *