Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


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

8 Dynamic Objects > Plug-in 72: X (x[n])

PLUG-IN 72: X (x[n])

Once you free an object from the flow of a web page by giving it a position other than static (such as relative or absolute), you can move it where you like on a page (or within its containing object). Using this class, you can change an object’s horizontal position on the page as shown in Figure 8-16, in which a 115 × 115–pixel object has been inset from the left of the browser by 475 pixels.

Variables, Functions, and Properties
image
About the Class

This class uses the replace() function to pass the horizontal location from the class argument to the S() function in order to modify the object’s left offset by changing its left property.

image

FIGURE 8-16 The box has been inset from the left by 475 pixels using this class.

How to Use It

  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint