From: Andrew G. <agi...@us...> - 2005-08-23 22:55:06
|
Update of /cvsroot/dynapi/dynapi3x/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21705 Modified Files: 003.DynLayerDestroy.html Log Message: Automatically destroy layers at end of run Index: 003.DynLayerDestroy.html =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/test/003.DynLayerDestroy.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** 003.DynLayerDestroy.html 15 Aug 2005 23:18:16 -0000 1.1 --- 003.DynLayerDestroy.html 23 Aug 2005 22:54:59 -0000 1.2 *************** *** 28,33 **** document.countform.counttext.value = counter; } ! if (counter >= 1000) stop(); } --- 28,35 ---- document.countform.counttext.value = counter; } ! if (counter >= 1000) { stop(); + destroyAll(); + } } *************** *** 35,38 **** --- 37,42 ---- function start() { if (counter==0){ + document.countform.counttext.value = 0; + document.countform.timer.value = ''; var d=new Date(); startTime=d.getTime(); *************** *** 48,54 **** function destroyAll() { dynapi.document.destroyAllChildren(); ! document.countform.counttext.value = 0; ! document.countform.timer.value = ''; ! counter=0; } --- 52,56 ---- function destroyAll() { dynapi.document.destroyAllChildren(); ! counter = 0; } *************** *** 57,62 **** <body bgcolor="#999999"> ! <p><a href="javascript:start()">Start generation</a><br> ! <a href="javascript:destroyAll()">Destroy all</a><br> <form name="countform"> --- 59,63 ---- <body bgcolor="#999999"> ! <p><a href="javascript:start()">Start generation</a></p> <form name="countform"> |