comparison 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
comparison
equal deleted inserted replaced
29:7742910e0479 30:293275d50722
132 132
133 133
134 $start = <<OHYEAH; 134 $start = <<OHYEAH;
135 <br> 135 <br>
136 PERL::OPT:&nbsp;&nbsp; 136 PERL::OPT:&nbsp;&nbsp;
137 <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');"> 137 <input type="text" id="PERL::OPT" name="line_PERL::NUMb" size="20" value = "PERL::DEFAULT" ONFOCUS="clearDefault(this)"
138 onKeyUp="
139 tt.remove();
140
141 var font_size = 75;
142
143 tt = raphe.print(0, 145, value, raphe.getFont('HelveticaNeue', 700), font_size);
144 tt.attr('stroke', '#f00');
145 tt.attr('fill', 'TRANSPARENT');
146 var c = tt.getBBox().width;
147 tt.translate((502 - c)/2,0);
148
149
150
151
152
153
154 //document.write( c );
155
156
157
158
159
160 "
161
162 >
138 <!-- --> 163 <!-- -->
139 <br> 164 <br>
140 OHYEAH 165 OHYEAH
141 166
142 167