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

Q&A

Q1:Isn't there some way to make layers without using the style attribute?
A1: Only in Netscape Navigator versions 3 and 4. Netscape invented its own <layer> tag, which is unlikely to ever become part of the HTML standard or to be supported by other browsers. For more information on this tag, visit http://developer.netscape.com.
Q2:In Hour 16 you stressed the concept of keeping style specifications in a separate document, but in this hour you put all the style stuff right in with the HTML. Aren't you being hypocritical?
A2: Sort of. It is often a good idea to keep styles in a separate document, and you can combine true style sheets and Dynamic HTML. For example, I could have made a style sheet that included a style like the following:
div.peekaboo {position: absolute; left: -250px; top: 10px; width: 300;}

I could then have applied that style to each of the three file tab layers with <div class="peekaboo">. Doing so, however, would probably have just made the page harder to understand and maintain. When you are working with JavaScript and style-based positioning, I usually find it easier and more efficient to use inline styles than to use separate style sheets.

Q3:I'm a professional programmer, and I think it was inelegant of you to employ global variables instead of parameter passing in your implementation of the recursive function slide(). Furthermore…
A3: Was that a question? I didn't think so. Get over it, okay?


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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