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

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1: - string cvs_version="$Id: graphic_text.pike,v 1.27 1997/02/19 01:00:53 per Exp $"; + string cvs_version="$Id: graphic_text.pike,v 1.28 1997/02/22 00:02:14 per Exp $";   #include <module.h>   inherit "module";   inherit "roxenlib";      import Image;      array register_module()   {    return ({ MODULE_LOCATION | MODULE_PARSER,    "Graphics text",
Roxen.git/server/modules/graphics/graphic_text.pike:659:    "<!-- \n"    "if(version == \"3\")\n"    "{\n"    " "+sn+" = new Image("+xs+", "+ys+");\n"    " "+sn+".src = \""+image_1+"\";\n"    " "+sn+"2 = new Image("+xs+", "+ys+");\n"    " "+sn+"2.src = \""+image_2+"\";\n"    "}\n"    "// -->\n"    "</script>\n"+ -  ("<a "+extra_args+"href=\""+url+"\" "+(input?"onClick='document.forms[0].submit();' ":"") +  ("<a "+extra_args+"href=\""+url+"\" "+ +  (input?"onClick='document.forms[0].submit();' ":"")    +"onMouseover=\"img_act('"+sn+"','"    +(mess||url)+"');return true;\"\n"    "\n"    "onMouseout=\"img_inact('"+sn+"')\"><img _parsed=1 width="+xs+" "    "height="+ys+" src="+image_1+" name="+sn+" border=0\nalt=\""+alt+"\" ></a>\n"));   }         string extra_args(mapping in)   {
Roxen.git/server/modules/graphics/graphic_text.pike:841:    array size = write_text(num2,gt,1,0);    if(!defines->magic_java) res = magic_javascript_header(id);    defines->magic_java="yes";    return res + magic_image(url||"", size[0], size[1],    "i"+(num+""+hash(gt,0x7fffffff)+hash(url||"",0x7fffffff))+"g",    query_location()+num+"/"+quote(gt),    query_location()+num2+"/"+quote(gt),    replace(gt, "\"","'"),(magic=="magic"?0:magic),    id,input?(arg->name||"submit"):0,ea);    } -  if(input && id->supports->images) +  if(input)    return (pre+"<input type=image name=\""+arg->name+"\" border=0 alt=\""+    replace(gt,"\"","'")+"\" src="+query_location()+num+"/"+quote(gt)    +" align="+(arg->align?arg->align:defalign)+ea+    " width="+size[0]+" height="+size[1]+">"+rest+post);    return (pre+(lp?lp:"")+    "<img _parsed=1 border=0 alt=\""+replace(gt,"\"","'")+"\" src="+    query_location()+num+"/"+quote(gt)+" "+ea    +" align="+(arg->align?arg->align:defalign)+    " width="+size[0]+" height="+size[1]+">"+rest+(lp?"</a>":"")+post);   }