Branch: Tag:

2001-04-24

2001-04-24 23:35:21 by Martin Nilsson <mani@lysator.liu.se>

Fixed [bug 1588 (#1588)]

Rev: server/modules/graphics/graphic_text.pike:1.265

1:   // This is a roxen module. Copyright © 1996 - 2000, Roxen IS.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.264 2001/03/21 14:26:31 jhs Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.265 2001/04/24 23:35:21 nilsson Exp $";      #include <module.h>   inherit "module";
1073:       if(!id->supports->images) return sprintf(lp,arg->alt);    -  string sn="i"+id->misc->gtext_mi++; +  string sn="gtext"+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>"):
1083:    arg->name=sn;    string res="<script>\n";    if(!id->misc->gtext_magic_java) { -  res += "function i(ri,hi,txt)\n" +  res += "function gtext_mo(ri,hi,txt)\n"    "{\n"    " document.images[ri].src = hi.src;\n"    " if( txt != 0 )\n"
1100:    "</script>\n"+    "<a"+ea+"href=\""+url+"\" "+    (input?"onClick='document.forms[0].submit();' ":"") -  +"onMouseover=\"i('"+sn+"',"+sn+"h,"+((strlen(magic) && magic != "magic")? +  +"onMouseover=\"gtext_mo('"+sn+"',"+sn+"h,"+((strlen(magic) && magic != "magic")?    "'"+replace(magic,"'","`")+"'":    "0")+"); return true;\" "    "onMouseout=\"document.images['"+sn+"'].src = "+sn+"l.src;\">"