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 - 2001, Roxen IS.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.288 2002/01/21 17:53:03 mast Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.289 2002/02/05 15:08:40 anders Exp $";      #include <module.h>   inherit "module";         // ------------------- Module registration ---------------------      constant module_type = MODULE_TAG;   constant module_name = "Graphics: Graphic text";   constant module_doc =
Roxen.git/server/modules/graphics/graphic_text.pike:1117:    if(!id->supports->images) return sprintf(lp,arg->alt);       string sn = "gtext" + id->root_id->misc->gtext_mi++;    if(!id->supports->js_image_object) {    return (!input)?    ("<a"+ea+"href=\""+url+"\">"+Roxen.make_tag("img",arg+(["name":sn]),xml)+"</a>"):    Roxen.make_tag("input",arg+(["type":"image"]),xml);    }       arg->name=sn; -  string res="<script>\n"; +  string res="<script language='javascript'>\n";    if(!id->root_id->misc->gtext_magic_java) {    res += "function gtext_mo(ri,hi,txt)\n"    "{\n"    " document.images[ri].src = hi.src;\n"    " if( txt != 0 )\n"    " setTimeout(\"top.window.status = '\"+txt+\"'\", 100);\n"    "}";    id->root_id->misc->gtext_magic_java="yes";    }