Revision: 17989
Updated Code
at December 8, 2009 22:13 by cobra90nj
Updated Code
<html> <head> <script type="text/javascript"> //coded by cobra90nj var str = ""; function _prompta () { var iouname = prompt("Inserisci nome",""); if (iouname != null && iouname != "") { document.write("Ciao il tuo nome in farfallino è " + _toFarfall(iouname)); } } function _toFarfall (name) { for (var a in name) { if (name[a].match(/[aeiou]/i)) { str += "f"+name[a]+"f"; } else { str += name[a]; } } return str; } </script> </head> <input type="button" onclick="_prompta()" value="Inserisci" /> </body> </html>
Revision: 17988
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 18, 2009 20:19 by cobra90nj
Initial Code
<html> <head> <script type="text/javascript"> //coded by cobra90nj var str = ""; function _prompta () { var iouname = prompt("Inserisci nome",""); if (iouname != null && iouname != "") { document.write("Ciao il tuo nome in farfallino è " + _toFarfall(iouname)); } } function _toFarfall (name) { for (var a in name) { if (name[a].match(/[aeiou]/i)) { str += "f"+name[a]+"f"; } else { str += name[a]; } } return str; } </script> </head> <input type="button" onclick="_prompta()" value="Inserisci" /> </body> </html>
Initial URL
Initial Description
This is an implementation of alphabet butterfly, its consists in adding a consonant "F" before and after every vowel.
Initial Title
alfabeto farfalla
Initial Tags
Initial Language
JavaScript