• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 13. Adding Multimedia Effects to... > Completing the Navigation.asp File

Completing the Navigation.asp File

The Musichome.asp file does not provide you with an option to close the browser window. Therefore, to allow users to close the browser window, you need to attach a Call Javascript behavior to an image. To do this, insert a layer at the top right corner of the Navigation.asp file. The Layer ID for this layer is Layer2 by default. Copy the close.jpg image to your local folder and insert the image within Layer2. Next, you need to attach the Call Javascript behavior to this image so that when the user clicks the image, the browser window closes. To attach this behavior, perform the following steps:

1.
Select the image and choose Window, Behaviors to open the Behaviors panel.

2.
Click the + button on the Behaviors panel. Select the Call Javascript option from the pop-up menu.

3.
In the Call Javascript dialog box that is displayed, type window.top.close() in the Javascript text box.

4.
Click OK to close the dialog box.

5.
Select the onClick event from the Events drop-down list.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint