Mercurial > laserkard
diff paypal/basic_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/basic_acrylic_green.paylist Sat Jan 16 12:25:43 2010 -0500 1.2 +++ b/paypal/basic_acrylic_green.paylist Sun Jan 17 08:08:20 2010 -0500 1.3 @@ -103,22 +103,122 @@ 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 = "MI6" 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 = "MI6" 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 <br> 1.68 Line 3: 1.69 -<input type="text" id="Line 3" name="line_3b" size="20" value = "Secret Agent" 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.70 +<input type="text" id="Line 3" name="line_3b" size="20" value = "Secret Agent" ONFOCUS="clearDefault(this)" 1.71 +onKeyUp=" 1.72 +tt.remove(); 1.73 + 1.74 +var font_size = 75; 1.75 + 1.76 +tt = raphe.print(0, 145, value, raphe.getFont('HelveticaNeue', 700), font_size); 1.77 +tt.attr('stroke', '#f00'); 1.78 +tt.attr('fill', 'TRANSPARENT'); 1.79 +var c = tt.getBBox().width; 1.80 +tt.translate((502 - c)/2,0); 1.81 + 1.82 + 1.83 + 1.84 + 1.85 + 1.86 + 1.87 +//document.write( c ); 1.88 + 1.89 + 1.90 + 1.91 + 1.92 + 1.93 +" 1.94 + 1.95 +> 1.96 <!-- --> 1.97 <br> 1.98 <br> 1.99 Line 4: 1.100 -<input type="text" id="Line 4" name="line_4b" 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.101 +<input type="text" id="Line 4" name="line_4b" size="20" value = "jbond@mi6.co.uk" ONFOCUS="clearDefault(this)" 1.102 +onKeyUp=" 1.103 +tt.remove(); 1.104 + 1.105 +var font_size = 75; 1.106 + 1.107 +tt = raphe.print(0, 145, value, raphe.getFont('HelveticaNeue', 700), font_size); 1.108 +tt.attr('stroke', '#f00'); 1.109 +tt.attr('fill', 'TRANSPARENT'); 1.110 +var c = tt.getBBox().width; 1.111 +tt.translate((502 - c)/2,0); 1.112 + 1.113 + 1.114 + 1.115 + 1.116 + 1.117 + 1.118 +//document.write( c ); 1.119 + 1.120 + 1.121 + 1.122 + 1.123 + 1.124 +" 1.125 + 1.126 +> 1.127 <!-- --> 1.128 <br> 1.129