The Whole Code

We've made a lot of changes without looking at the code in a single piece, so here it is (Example 5-8).

Example 5-8. The whole code
 <html> <head> <title>Welcome to Shelley Biotech!</title> <style type="text/css"> #header { position: absolute; left: 36; top: 31; } #nav { position: absolute; left: 0; top: 122; } #gal { position: absolute; left: 515; top: 74; } #submenu { position: absolute; left: 33; top: 163; } #shortcut { position: absolute; left: 33; top: 163; } .copy { font-family: verdana, sans-serif; font-size: 10px } </style> <script language="JavaScript"> // preload images newsOn = new Image() newsOn.src = "images/nav_news_on.gif" newsOff = new Image() newsOff.src = "images/nav_news_off.gif" productsOn = new Image() productsOn.src ...

Get Advanced JavaScript™: Insights and Innovative Techniques now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.