Mercurial > laserkard
diff paypal/big_acrylic_green.paylist @ 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 | 0deeb2d5d1db |
line wrap: on
line diff
1.1 --- a/paypal/big_acrylic_green.paylist Sat Jan 16 12:25:43 2010 -0500 1.2 +++ b/paypal/big_acrylic_green.paylist Sun Jan 17 08:08:20 2010 -0500 1.3 @@ -103,12 +103,62 @@ 1.4 <!-- Start of Text Input Fields --> 1.5 <br> 1.6 Line 1: 1.7 -<input type="text" id="Line 1" name="line_1b" size="20" value = "James Bond" 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="Line 1" name="line_1b" size="20" value = "James Bond" 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 <br> 1.37 Line 2: 1.38 -<input type="text" id="Line 2" name="line_2b" size="20" value = "jbond@mi6.co.uk" 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.39 +<input type="text" id="Line 2" name="line_2b" size="20" value = "jbond@mi6.co.uk" ONFOCUS="clearDefault(this)" 1.40 +onKeyUp=" 1.41 +tt.remove(); 1.42 + 1.43 +var font_size = 75; 1.44 + 1.45 +tt = raphe.print(0, 145, value, raphe.getFont('HelveticaNeue', 700), font_size); 1.46 +tt.attr('stroke', '#f00'); 1.47 +tt.attr('fill', 'TRANSPARENT'); 1.48 +var c = tt.getBBox().width; 1.49 +tt.translate((502 - c)/2,0); 1.50 + 1.51 + 1.52 + 1.53 + 1.54 + 1.55 + 1.56 +//document.write( c ); 1.57 + 1.58 + 1.59 + 1.60 + 1.61 + 1.62 +" 1.63 + 1.64 +> 1.65 <!-- --> 1.66 <br> 1.67