Page files
<script type="text/javascript" src="jquery-1.6.min.js"></script><script type="text/javascript" src="queryi18n.js"></script><script type="text/javascript"></script>
Js files
// Save the international file function savei18ninfo () {var i18ninfo = geti18ninfo (); alert (i18ninfo) ;}// obtain the i18n value function geti18ninfo () {var key = ""; var value = ""; var i18ndata = ""; var table = $ ("# i18ntable"); var tbody = table. children (); var trs = tbody. children (); for (var I = 1; I
"); // 4, set the value of the text box to the saved text content input. attr ("value", text); input. bind ("blur", function () {var inputnode =$ (this); var inputtext = inputnode. val (); var tdNode = inputnode. parent (); tdNode.html (inputtext); tdNode. click (tdclick); td. attr ("onclick", "tdclick (this)") ;}); input. keyup (function (event) {var myEvent = event | window. event; var kcode = myEvent. keyCode; if (kcode = 13) {var inputnode = $ (this); var inputtext = inputnode. val (); var tdNode = inputnode. parent (); tdNode.html (inputtext); tdNode. click (tdclick) ;}}); // 5, add the text box to td. append (input); var t = input. val (); input. val (""). focus (). val (t); // input. focus (); // 6, clear the Click Event td. unbind ("click");} function addtr () {var table = $ ("# i18ntable"); var tr = $ (""+""+""+" Delete "+""); Table. append (tr);} function deletetr (tdobject) {var td =$ (tdobject); td. parents (" tr "). remove ();}