[Bio] / FigKernelPackages / FIGjs.pm Repository:
ViewVC logotype

Diff of /FigKernelPackages/FIGjs.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1, Fri Oct 22 17:04:36 2004 UTC revision 1.2, Thu Nov 11 04:22:48 2004 UTC
# Line 17  Line 17 
17  sub toolTipScript {  sub toolTipScript {
18    
19   my $script= <<'EOS';   my $script= <<'EOS';
20  <script type="text/javascript">  <script LANGUAGE="JavaScript" type="text/javascript">
21  // javascript class for tooltips and popup menus  // javascript class for tooltips and popup menus
22    
23  // this class manages the information, creating  // this class manages the information, creating
# Line 322  Line 322 
322          }          }
323      }      }
324  }  }
325    
326    function setValue(id , val) {
327       var element = document.getElementById(id);
328       element.value = val;
329    }
330    
331    
332  </script>  </script>
333  EOS  EOS
334    
# Line 331  Line 338 
338    
339  sub mouseover {  sub mouseover {
340      my ($title, $text, $menu) = @_;      my ($title, $text, $menu) = @_;
341        $info =~ s/'/\\'/g;
342      return " onMouseover=\"javascript:if(!this.tooltip) this.tooltip=new Popup_Tooltip(this,'".$title."','".$text."','".$menu."');this.tooltip.addHandler();return true;\" ";      $info =~ s/"/&quot;/g; #"
343        $title =~ s/'/\\'/g;
344        $title =~ s/"/&quot;/g; #"
345    
346        $menu =~ s/'/\\'/g;
347        $menu =~ s/"/&quot;/g; #"
348        my $return_value = $menu ? 'false' : 'true';
349        return " onMouseover=\"javascript:if(!this.tooltip) this.tooltip=new Popup_Tooltip(this,'".$title."','".$text."','".$menu."');this.tooltip.addHandler();return $return_value;\" ";
350    
351  }  }
352    
353  sub toolTipLink {  sub toolTipLink {
354      return '<script src="Html/popup_tooltip.js" type="text/javascript"></script>';      return '<script src="Html/popup_tooltip.js" type="text/javascript"></script>';
355  }  }
356    sub setValueScript {
357    
358    my $script = <<'SCRIPT';
359    <script type="text/javascript">
360    function setValue(id , val) {
361       var element = document.getElementById(id);
362       element.value = val;
363    }
364    </script>
365    SCRIPT
366    
367    return $script;
368    
369    }
370  1;  1;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3