MH-book-200605/ 0002755 0001750 0000062 00000000000 10437416364 012236 5 ustar wohler staff MH-book-200605/mh.css 0000644 0001750 0000062 00000005074 10437416363 013357 0 ustar wohler staff /* * $Id: newt.css 7565 2006-02-10 05:33:30Z wohler $ * * Style sheet for MH book. */ body { background-color: white; } /* Adds white space between bullets. */ li { margin-top: .5em; } /* General image settings. */ img { border-width: 0; } /* Use to place photos in tables. */ div.photo { display: table; margin: 1em auto 1em auto; } /* Use to place photos in text (on the left). */ div.photo-left { float: left; clear: left; margin: 1em 1em 1em 0em; } /* Use to place photos in text (on the right). */ div.photo-right { float: right; clear: right; margin: 1em 0em 1em 1em; } /* * Thin pinstripe at the top of each page so that the header doesn't * blend with the tabs and browser functions. */ div.headliner { width: 100%; border-top: 2px solid black; margin: -8px 0px 0px -8px; padding: 0px 8px; } /* Version information is separated from title by thick bar. */ div.book-version { border-top: 6px solid #4d1578; text-align: right; font-size: .8em; margin: 0px -8px 0px 0px; padding: 2px 8px 1em 8px; } /* Add a bit of white space around small logo on all but home page. */ div.small-logo { float: left; padding: 10px 0px; } /* Navigation bar. Stretch it out so it touches the sides. */ div.navbar { width: 100%; clear: both; border-style: solid; border-width: 1px 0px; background: #E4E4E4; margin: 0px 0px .7em -8px; padding: 0px 8px; color: #666666; font-size: .9em; font-family: Arial, Helvetica, sans-serif; font-weight: bold; } /* Navigation bar link. Avoid the link underline. */ a.navbar { color: #666666; padding: 0px 40px; text-decoration: none; } /* * Search box for the navigation bar. Locate it on the right side. * Move it up a pixel to center it in the navigation bar. */ form.navbar-search { display: inline; position: absolute; right: 20px; } /* * Box for entering text in the navigation bar search box. The margin * and alignment help to center the box in the navigation bar. */ input.navbar-search-text { font-size: .9em; padding: 0px 5px; vertical-align: top; margin-top: -1px; } /* * Image for submitting the search in the navigation bar search box. * The padding and alignment help to center the image in the * navigation bar. */ input.navbar-search-button { vertical-align: top; padding-top: 2px; } /* Copyright block at bottom of page is in a smaller font. */ .copyright { font-size: .8em; } /* Attribution is part of H1, and is much smaller. */ .attribution { font-style: italic; font-size: .5em; font-weight: normal; padding-left: 1em; } MH-book-200605/mh.php 0000644 0001750 0000062 00000016202 10437416363 013351 0 ustar wohler staff $jerryCopyrightHolder = "Jerry Peek"; $oreillyCopyrightHolder = "O'Reilly Media, Inc."; $billCopyrightHolder = "Bill Wohler"; $bookVersion = 'May, 2006'; /** * includeHeader(string $previous, string $next[, $back]) * * Includes the MH book header. The arguments $previous and $next are * href targets. Optional argument $back replaces the previous and * next link with a back link. * * The global variable $book is used to find the book's files. * * For example: * *
* * $book = '.'; * include "$book/mh.php"; * includeHeader('ack.html', 'whaema.html'); * ?> * ... * * Thanks to http://www.newt.com/, http://www.bytemobile.com/ and * http://www.ravenflow.com/ for ideas. */ function includeHeader($previous, $next, $back = '') { GLOBAL $bookVersion; GLOBAL $book; ?>