For a Text object named myText containing the text ‘Click here or there’ where the word ‘here’ would display an Image object named Image1 and the word ‘there’ would display an Image object Image2, use the following syntax in myText (note: write the Script Action with the trigger On Show)
myText.SetSelection(6,10)
myText.CreateHypertext(showImage())
myText.SetSelection(14,19)
myText.CreateHypertext("Image2.Show()")
Note:
In this example, the Action in the first CreateHypertext function calls a function named showImage. This function must either be written in a Script Object on the current page. The Action in the second CreateHypertext function is a string containing the expression to show Image2. Neither the function or script will run until the user left-clicks on the hypertext area.