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

Chapter 12. Learning About Your Environment > Finding an Object's 3-D Position

Finding an Object's 3-D Position

The CSS attribute z-index allows you to stack positioned elements in 3-D (see "Stacking Objects" in Chapter 8). Using JavaScript, you can determine the z-index of individual objects on the screen (Figure 12.20).

Figure 12.20. An alert appears to tell you the layer number of the object clicked.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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