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

Hour 20. Setting Pages in Motion with Dy... > Moving a Layer Around with JavaScrip...

Moving a Layer Around with JavaScript

The only two sections of code in Figures 20.3 and 20.6 I haven't explained yet in this hour are the <body> tag in Figure 20.3 and the slide function in Figure 20.6. Together, they create the effect seen in Figures 20.1 and 20.2: the text layer flying onto the page. The <body> tag looks like this:

<body OnLoad="if (checkDHTML()) {
 layername=makeName('intro');
 yhop=-2; ygoal=20; xhop=10; xgoal=80; slide() }">


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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