Mercurial > laserkard
diff paypal/generate_paylists.pm @ 30:293275d50722 laserkard
[svn r31] Implemented Centering on the dynamic text display in a static context
author | rlm |
---|---|
date | Sun, 17 Jan 2010 08:08:20 -0500 |
parents | 7742910e0479 |
children | d269b63b4a54 |
line wrap: on
line diff
1.1 --- a/paypal/generate_paylists.pm Sat Jan 16 12:25:43 2010 -0500 1.2 +++ b/paypal/generate_paylists.pm Sun Jan 17 08:08:20 2010 -0500 1.3 @@ -134,7 +134,32 @@ 1.4 $start = <<OHYEAH; 1.5 <br> 1.6 PERL::OPT: 1.7 -<input type="text" id="PERL::OPT" name="line_PERL::NUMb" size="20" value = "PERL::DEFAULT" ONFOCUS="clearDefault(this)" onKeyUp="tt.remove();tt = raphe.print(10, 150, value, raphe.getFont('HelveticaNeue', 800), 75);tt.attr('stroke', '#f00');tt.attr('fill', 'RED');"> 1.8 +<input type="text" id="PERL::OPT" name="line_PERL::NUMb" size="20" value = "PERL::DEFAULT" ONFOCUS="clearDefault(this)" 1.9 +onKeyUp=" 1.10 +tt.remove(); 1.11 + 1.12 +var font_size = 75; 1.13 + 1.14 +tt = raphe.print(0, 145, value, raphe.getFont('HelveticaNeue', 700), font_size); 1.15 +tt.attr('stroke', '#f00'); 1.16 +tt.attr('fill', 'TRANSPARENT'); 1.17 +var c = tt.getBBox().width; 1.18 +tt.translate((502 - c)/2,0); 1.19 + 1.20 + 1.21 + 1.22 + 1.23 + 1.24 + 1.25 +//document.write( c ); 1.26 + 1.27 + 1.28 + 1.29 + 1.30 + 1.31 +" 1.32 + 1.33 +> 1.34 <!-- --> 1.35 <br> 1.36 OHYEAH