Branch: Tag:

1998-11-19

1998-11-19 10:22:28 by Per Hedbor <ph@opera.com>

More changes

Rev: server/base_server/fonts.pike:1.26
Rev: server/base_server/roxen.pike:1.253
Rev: server/base_server/rxml.pike:1.2
Rev: server/modules/filesystems/cvsfs.pike:1.18
Rev: server/modules/graphics/graphic_text.pike:1.157

1: - constant cvs_version="$Id: graphic_text.pike,v 1.156 1998/11/18 04:54:15 per Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.157 1998/11/19 10:22:28 per Exp $";   constant thread_safe=1;      #include <module.h>
1139:    return (!input)?    ("<a "+extra_args+"href=\""+url+"\"><img src=\""+image_1+"\" name="+sn+" border=0 "+    "alt=\""+alt+"\"></a>"): -  ("<input type=image "+extra_args+" src=\""+image_1+"\" name="+input+">"); +  ("<input border=0 type=image "+extra_args+" src=\""+image_1+"\" name=\""+input+"\">");    -  +  if(input)    return -  +  "<input border=0 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>\n"+    ("<a "+extra_args+"href=\""+url+"\" "+    (input?"onClick='document.forms[0].submit();' ":"") -  +"onMouseover=\"i('"+sn+"',"+sn+"h,'"+(mess||url)+"'); return true;\"\n" +  +" 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>"));
1215:   {    if((contents-" ")=="")    return ""; +  +  if(id->prestate->noimages) +  { +  contents = replace(contents, "&ss;", ""); +  if(arg->submit) +  return "<input type=submit name='"+arg->name+"' value='"+contents+"'>"; +  return contents; +  }   //Allow <accessed> and others inside <gtext>.    if(arg->nowhitespace)    {
1222:    sscanf(reverse(contents),"%*[ \n\r\t]%s",contents);    contents=reverse(contents);    } -  if(t=="gtext" && arg->help) +  if(arg->help) +  { +  if(t == "gtext")    return doc(); -  else if(arg->help) +     return "This tag calls &lt;gtext&gt; with different default values."; -  +  }    if(arg->background)    arg->background = fix_relative(arg->background,id);    if(arg->texture)