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

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1: - constant cvs_version="$Id: graphic_text.pike,v 1.135 1998/08/02 00:59:35 peter Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.136 1998/08/02 01:08:05 peter Exp $";   constant thread_safe=1;      #include <module.h>   #include <stat.h>   inherit "module";   inherit "roxenlib";      #ifndef VAR_MORE   #define VAR_MORE 0   #endif /* VAR_MORE */
Roxen.git/server/modules/graphics/graphic_text.pike:1140:   {    if(!id->supports->images) return alt;    if(!id->supports->netscape_javascript)    return (!input)?    ("<a "+extra_args+"href=\""+url+"\"><img src=\""+image_1+"\" name="+sn+" border=0 "+    "alt=\""+alt+"\"></a>\n"):    ("<input type=image "+extra_args+" src=\""+image_1+"\" name="+input+">");       return    ("<script>\n" -  " "+sn+"l = new Image("+xs+", "+ys+");"+sn+"l.src = \""+image_1+"\";\n" -  " "+sn+"h = new Image("+xs+", "+ys+");"+sn+"h.src = \""+image_2+"\";\n" -  "</script>"+ +  " "+sn+"l = new Image("+xs+", "+ys+");"+sn+"l.src = \""+image_1+"\";\n" +  " "+sn+"h = new Image("+xs+", "+ys+");"+sn+"h.src = \""+image_2+"\";\n" +  "</script>\n"+    ("<a "+extra_args+"href=\""+url+"\" "+    (input?"onClick='document.forms[0].submit();' ":"")    +"onMouseover=\"i('"+sn+"',"+sn+"h,'"+(mess||url)+"'); return true;\"\n"    "onMouseout='top.window.status=\"\";document.images[\""+sn+"\"].src = "+sn+"l.src;'><img "    "width="+xs+" height="+ys+" src=\""+image_1+"\" name="+sn+ -  " border=0 alt=\""+alt+"\" ></a>")); +  " border=0 alt=\""+alt+"\" ></a>\n"));   }         string extra_args(mapping in)   {    string s="";    foreach(indices(in), string i)    {    switch(i)    {
Roxen.git/server/modules/graphics/graphic_text.pike:1536:    c = c[..sizeof(c)-i-2];    id->misc->colors = c;      }      mapping query_tag_callers()   {    return ([ "gtext-id":tag_gtext_id, ])    | (query("nobody")?([]):    (["body":tag_body, -  "/body":pop_color])), +  "/body":pop_color]))    | (query("speedy")?([]):    (["font":tag_fix_color,    "table":tag_fix_color,    "tr":tag_fix_color,    "td":tag_fix_color,    "layer":tag_fix_color,    "ilayer":tag_fix_color,    "/td":pop_color,    "/tr":pop_color,    "/font":pop_color,