Roxen.git / server / modules / graphics / graphic_text.pike

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1:   // This is a roxen module. Copyright © 1996 - 2000, Roxen IS.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.220 2000/03/20 00:53:00 mast Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.221 2000/03/20 19:21:27 per Exp $";      #include <module.h>   inherit "module";   inherit "roxenlib";         // ------------------- Module registration ---------------------      constant module_type = MODULE_PARSER;   constant module_name = "Graphics text";
Roxen.git/server/modules/graphics/graphic_text.pike:905:    ("<a "+ea+"href=\""+url+"\">"+make_tag("img",arg+(["name":sn]))+"</a>"):    make_tag("input",arg+(["type":"image"]));    }       arg->name=sn;    string res="\n<script>\n";    if(!id->misc->gtext_magic_java) {    res += "function i(ri,hi,txt)\n"    "{\n"    " document.images[ri].src = hi.src;\n" -  " setTimeout(\"top.window.status = '\"+txt+\"'\", 100);\n" +  " if( txt != 0 )\n" +  " setTimeout(\"top.window.status = '\"+txt+\"'\", 100);\n"    "}\n";    }    id->misc->gtext_magic_java="yes";       return    res+    " "+sn+"l = new Image("+arg->width+", "+arg->height+");"+sn+"l.src = \""+arg->src+"\";\n"    " "+sn+"h = new Image("+arg->width+", "+arg->height+");"+sn+"h.src = \""+query_internal_location()+num2+ext+"\";\n"    "</script>\n"+    "<a "+ea+"href=\""+url+"\" "+    (input?"onClick='document.forms[0].submit();' ":"") -  +"onMouseover=\"i('"+sn+"',"+sn+"h,'"+(magic=="magic"?url:magic)+"'); return true;\" " -  "onMouseout=\"top.window.status='';document.images['"+sn+"'].src = "+sn+"l.src;\">" +  +"onMouseover=\"i('"+sn+"',"+sn+"h,"+((strlen(magic) && magic != "magic")? +  "'"+replace(magic,"'","`")+"'": +  "0")+"); return true;\" " +  "onMouseout=\"document.images['"+sn+"'].src = "+sn+"l.src;\">"    +make_tag("img",arg)+"</a>";    }       if(input)    return make_tag("input",arg+(["type":"image"]));       return sprintf(lp,make_tag("img",arg));   }      array(string) simpletag_gh(string t, mapping m, string c, RequestID id) {