parse_text.c
changeset 28 75b6d5659a19
parent 25 8d524bb8dcea
--- a/parse_text.c	Sun Sep 02 16:01:27 2007 +0200
+++ b/parse_text.c	Sat Sep 08 09:12:50 2007 +0200
@@ -36,8 +36,10 @@
 "function display(element, ev)\n"
 "{\n"
 "    var x,y;\n"
-"    x = ev.screenX + window.pageXOffset;\n"
-"    y = ev.screenY + window.pageYOffset;\n"
+#if 0
+"    x = ev.x + window.pageXOffset;\n"
+#endif
+"    y = ev.pageY;\n"
 "\n"
 "    if (blocked != \"\")\n"
 "        return;\n"
@@ -72,7 +74,7 @@
 "    document.getElementById(element).style.display = 'none';\n"
 "}\n"
 "\n"
-"function click(element, ev)\n"
+"function klako(element, ev)\n"
 "{\n"
 "    if (blocked == \"\")\n"
 "    {\n"
@@ -123,7 +125,7 @@
 
 static void print_start_signifoj(int id)
 {
-    printf("<div id=\"vorto%i\" onclick=\"click('vorto%i', event);\" "
+    printf("<div id=\"vorto%i\" onclick=\"klako('vorto%i', event);\" "
             "class=\"difino\"><p>\n", id, id);
 }
 
@@ -175,7 +177,7 @@
 {
     if (give_html)
     {
-        printf("<span class=\"vorto\" onclick=\"click('vorto%i', event);\">"
+        printf("<span class=\"vorto\" onclick=\"klako('vorto%i', event);\">"
                 "%s</span>",id,word);
     } else
         printf("%s", word);