Mercurial > laserkard
diff paypal/lines_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/lines_acrylic_green.paylist Sat Jan 16 12:25:43 2010 -0500 1.2 +++ b/paypal/lines_acrylic_green.paylist Sun Jan 17 08:08:20 2010 -0500 1.3 @@ -103,32 +103,182 @@ 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 = "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.39 +<input type="text" id="Line 2" name="line_2b" size="20" value = "Secret Agent" 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 = "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.70 +<input type="text" id="Line 3" name="line_3b" size="20" value = "MI6" 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 = "123.456.7890" 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 = "123.456.7890" 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 <br> 1.130 Line 5: 1.131 -<input type="text" id="Line 5" name="line_5b" size="20" value = "jbond@domain.com" 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.132 +<input type="text" id="Line 5" name="line_5b" size="20" value = "jbond@domain.com" ONFOCUS="clearDefault(this)" 1.133 +onKeyUp=" 1.134 +tt.remove(); 1.135 + 1.136 +var font_size = 75; 1.137 + 1.138 +tt = raphe.print(0, 145, value, raphe.getFont('HelveticaNeue', 700), font_size); 1.139 +tt.attr('stroke', '#f00'); 1.140 +tt.attr('fill', 'TRANSPARENT'); 1.141 +var c = tt.getBBox().width; 1.142 +tt.translate((502 - c)/2,0); 1.143 + 1.144 + 1.145 + 1.146 + 1.147 + 1.148 + 1.149 +//document.write( c ); 1.150 + 1.151 + 1.152 + 1.153 + 1.154 + 1.155 +" 1.156 + 1.157 +> 1.158 <!-- --> 1.159 <br> 1.160 <br> 1.161 Line 6: 1.162 -<input type="text" id="Line 6" name="line_6b" size="20" value = "http://www.domain.com" 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.163 +<input type="text" id="Line 6" name="line_6b" size="20" value = "http://www.domain.com" ONFOCUS="clearDefault(this)" 1.164 +onKeyUp=" 1.165 +tt.remove(); 1.166 + 1.167 +var font_size = 75; 1.168 + 1.169 +tt = raphe.print(0, 145, value, raphe.getFont('HelveticaNeue', 700), font_size); 1.170 +tt.attr('stroke', '#f00'); 1.171 +tt.attr('fill', 'TRANSPARENT'); 1.172 +var c = tt.getBBox().width; 1.173 +tt.translate((502 - c)/2,0); 1.174 + 1.175 + 1.176 + 1.177 + 1.178 + 1.179 + 1.180 +//document.write( c ); 1.181 + 1.182 + 1.183 + 1.184 + 1.185 + 1.186 +" 1.187 + 1.188 +> 1.189 <!-- --> 1.190 <br> 1.191