/* Code Samples - Ajax For Libraries: People @ the Library (HTML and Feedback) */
PHP file(s)
---------------------------------------------------------------------
/show/index.php
/show/people.php
Javascript file(s)
---------------------------------------------------------------------
/show/scripts/fetchHtml.js
window.onload = prepareLinks;
function prepareLinks() {
if (!document.getElementById || !document.getElementsByTagName) {
return;
}
if (!document.getElementById("people")) {
return;
}
var list = document.getElementById("people");
var links = list.getElementsByTagName("a");
for (var i=0; ibody a, html>body a:visited {border-bottom-style:dotted;}
a:hover, a:active {color:#933;border-color:#b55;border-bottom-style:solid;}
a img {border:none;}
/* =forms
----------------------------------------------- */
form {padding:10px;border-top:1px solid #ccc;border-right:2px solid #ccc;border-bottom:2px solid #ccc;border-left:1px solid #ccc;background-color:#F2F2F2;}
fieldset {border:none;}
label {font-size:1.2em;color:#2b4268;vertical-align:middle;cursor:pointer;}
input, select, textarea {width:25em;font:1.0em verdana,arial,sans-serif;padding:3px;margin:3px;border:1px solid gray;border-color:#AAA #DDD #DDD #AAA;vertical-align:middle;}
input:focus {border:1px #000 solid;}
input.submit {width:10em;font-size:.90em;color:#2b4268;border:1px solid black;border-color:#aaa #333 #333 #aaa;}
/* =miscellaneous and special global settings
----------------------------------------------- */
p.skipNav {position:absolute;left:-1000em;width:20em;}
p.download {text-align:right;margin-right:4%;font-size:.8em;line-height:1.2em;}
p.control {font-size:.8em;}
.zip {width:20px;padding:0 23px 0 0;background:url("../img/zip.gif") no-repeat right;}
.expand {line-height:12px;background:url("../img/expand.gif") 0 50% no-repeat;padding-left:16px;}
.refresh {line-height:14px;background:url("../img/refresh.gif") 0 50% no-repeat;padding-left:18px;}
/* =mastHead
----------------------------------------------- */
div#mastHead {background:#F3F3CC url("../img/mastripe.gif") 0 35px repeat-x;height:101px;}
#mastHead img {position:absolute;top:28px;left:4%;margin-left:-5px;border:none}
#mastHead p {background:#2b4268;color:#fff;padding:0 6% 3px 0;margin:0;font-size:0.75em;text-align:right;}
#mastHead p a {background:#2b4268;color:#fff;text-decoration:underline;}
/* =container
----------------------------------------------- */
div#container {width:65em;margin:0 auto;background:#fff;}
/* =main
----------------------------------------------- */
div#main {width:63em;margin:0 auto;padding:1em .5em 2em .5em;}
/* =content
----------------------------------------------- */
div#content {width:95%;margin:0 auto;}
#content p.warn {color:red;}
/* =people
----------------------------------------------- */
ul#people {display:inline;}
ul#people li {margin-left:0;padding-left:30px;border:none;list-style:none;display:inline;}
ul#people li#first {margin-left:0;padding-left:0;border:none;}
/* =details
----------------------------------------------- */
div#details {margin-top:30px;}
/* =footer
----------------------------------------------- */
div#footer {clear:both;width:100%;padding:.5em 0;padding-bottom:33px;background:url("../img/bkgrd-footer.gif") top left repeat-x;}
#footer ul {margin:0;padding:0;font:0.80em "Trebuchet MS",Verdana,sans-serif;text-align:center;}
#footer ul li {display:inline;list-style:none;padding:0 0.75em;}
#footer ul li a {border:none;}