Embedding Page Transitions from the JavaScript Console (from page 324) The JavaScript Console lets you type in commands (calls) that control page transitions. Using the JavaScript console you can set different transitions for the various pages. You can also set how long the transitions take. Even better, these transitions are available in the normal and full screen views. These embedded transitions also work in Reader 4. Step 1 Open the JavaScript Console Choose Tools>JavaScript>Console. The JavaScript Console dialog box appears. Don¹t worry about any text that may be in the console area. You¹re more concerned about the new text you enter. Step 2 Type the JavaScript Click inside the white area of the console, and make sure you¹re on a new line. Enter the following code as one line exactly as written. (Watch for the spaces after the colons and commas.) this.setPageTransitions({nStart: 0, aTrans: [-1, "BoxIn", 1], nEnd: 1}); Press the enter key on the numeric key pad to send the code from the console into the document. If you¹ve entered the text correctly, you will see the word ³undeÞned² appear in the console text area. If you¹re on a keyboard that doesn¹t have a numeric keypad hold the Alt key (w) or Control key (m) when you press Enter(Return) to execute the script. Step 3 Save and Test Save the Þle; close the document; and then reopen it. Use any of the navigation controls to move between pages. The Þrst two pages appear with the Box In transition. The other pages appear with whatever transition was set in the Full Screen Preferences. If you want to modify them, you must enter the new call in the console and the press the Enter key to send it to the document. Applying a Transition to All the Pages If you want to apply a transition to all the pages in a document, use this code. (Here we changed the transition to Dissolve.) this.setPageTransitions({aTrans: [-1, "Dissolve", 1]}); You can switch out these transitions names in the code we have provided: Acrobat Transitions List Replace WipeRight WipeLeft WipeDown WipeUp SplitHorizontalIn SplitHorizontalOut SplitVerticalIn SplitVerticalOut BlindsHorizontal BlindsVertical BoxIn BoxOut GlitterRight GlitterDown GlitterRightDown Dissolve Random Deleting the Embedded Code What if you want to get back to a normal document without embedded transitions? You have to send a command to delete the embedded transitions. (Clearing the JavaScript Console won¹t work.) Here¹s the code to delete the transitions from the Þrst two pages. this.setPageTransitions({nStart: 0, nEnd: 1});