version 1.20, 2003/02/03 18:03:54
|
version 1.22, 2003/04/19 15:34:06
|
Line 315 function intervaldis() {
|
Line 315 function intervaldis() {
|
choicewrite(cdays+' days '+chours+' hours ' |
choicewrite(cdays+' days '+chours+' hours ' |
+cmins+' mins '+csecs+' secs'); |
+cmins+' mins '+csecs+' secs'); |
} |
} |
|
|
|
function pickcolor(picked) { |
|
svalue=picked; |
|
draw(); |
|
} |
|
|
|
function colorfield(ir,ig,ib) { |
|
var col=new Array; |
|
col=["00","11","22","33","44","55","66","77","88","99","AA","BB","CC","DD","EE","FF"]; |
|
var color='#'+col[ir]+col[ig]+col[ib]; |
|
var selection=" "; |
|
if (color==svalue) { selection="X"; } |
|
choicewrite('<td bgcolor="'+color+'"><a href="javascript:parent.pickcolor('+"'"+ |
|
color+"'"+')">'+selection+'</a></td>'); |
|
|
|
} |
|
|
function draw() { |
function draw() { |
choicestart(); |
choicestart(); |
choicewrite('<form name=sch'); |
choicewrite('<form name=sch'); |
Line 513 function draw() {
|
Line 529 function draw() {
|
choicewrite('</td></table>'); |
choicewrite('</td></table>'); |
} |
} |
} |
} |
|
|
|
if (ptype=='color') { |
|
tablestart('Choose a Color'); |
|
choicewrite('<table>'); |
|
if (svalue) { |
|
choicewrite('<tr><td colspan="10">Current choice:</td><td bgcolor="'+ |
|
svalue+'" colspan="6"> </td></tr>'); |
|
} |
|
for (var ir=1; ir<=15; ir++) { |
|
for (var ig=1; ig<=15; ig++) { |
|
choicewrite('<tr>'); |
|
for (var ib=1; ib<=15; ib++) { |
|
colorfield(ir,ig,ib); |
|
} |
|
choicewrite('</tr>'); |
|
} |
|
} |
|
choicewrite('</table></td></table>'); |
|
} |
|
|
choicewrite('</table></form>'); |
choicewrite('</table></form>'); |
choiceend(); |
choiceend(); |
Line 685 function init() {
|
Line 720 function init() {
|
sopt('string','String Value'); |
sopt('string','String Value'); |
} |
} |
|
|
|
if (ptype=='color') { |
|
sopt('default','Use Default Color'); |
|
sopt('custom','Use Custom Color'); |
|
} |
|
|
selwrite('</select></form>'); |
selwrite('</select></form>'); |
|
|
selwrite('<a href="javascript:parent.assemble();'); |
selwrite('<a href="javascript:parent.assemble();'); |