javascript clock/timer demoletsenglishlc.com/projects/adults/cambridge/pet/book6t3rw.pdf · tiger...

14

Upload: others

Post on 19-Oct-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

  • JavaScript Clock/Timer Demoby Thom Parker WindJack Solutions, Inc.We can make clocks and tim

    ers in a

    PDF by combining the date object with

    a timer. Timers are created in

    Acrobat JavaScript with the “app.set Interval()” function. As arguments this function takes the length of the timing interval in milliseconds and some JavaScript code

    to execute. In this file, th

    e timer code is in a Document Script named “ClockCode”. The Timer control buttons below set state variables used in the timer function to control the internal time calculations and the display. The timer must

    be cleared before

    the document is closed. This is done with the “app.clearInterval()” function in the “WillClose” Action.

    Continuous Clock:

    24 hour Local Portland Hyderabad UTC New York Tokyo

    Stopwatch: Count Down Timer: Set Hours:

    Copyright 2006 by Windjack Solutions, Inc. www.windjack.com

    Una vez acabado la prueba, lo tienes que guardar con la opcion GUARDAR COMO y poner tu nombre

    Preliminary 6 Test 3 Reading and Writing

    http://www.windjack.com/http://www.pdfscripting.com

  • Text22: Text21: Text16: Text20: Text17: Text19: Text18: Dropdown1: [ ]Dropdown2: [ ]Dropdown3: [ ]Dropdown5: [ ]Dropdown4: [ ]Dropdown6: [ ]Dropdown10: [ ]Dropdown7: [ ]Dropdown8: [ ]Dropdown9: [ ]Group8: OffGroup9: OffGroup10: OffGroup6: OffGroup7: OffText6: Text9: Text7: Text8: Text11: Text10: Text13: Text12: Text15: Text14: Text1: Text2: Text3: Text4: Text5: Group2: OffGroup3: OffGroup4: OffGroup5: OffGroup1: OffStopWatchDisp: 00:00:00:00TimeZoneSel: LocalUse24Hr: OffClockDisp: 11:02:59 amSWStop: CDClear: SWPause: SWClear: SWStatus: StoppedCDStop: SWStart: Button1: Button2: DateDisp: Friday Oct 14, 2016CDStart: SWHrP10: SWHrM10: SWHrP1: SWHrM1: CountDownDisp: 1:30:00:00