Widget:Bookshelf: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 64: | Line 64: | ||
$(".bookChapter").each(function() { | $(".bookChapter").each(function() { | ||
var chapter = $(this).attr('id'); | var chapter = $(this).attr('id'); | ||
srcLink = imageObj[chapter]. | srcLink = imageObj[chapter].faded.src; | ||
$(this).attr('src',srcLink); | $(this).attr('src',srcLink); | ||
}); | }); | ||
Line 70: | Line 70: | ||
$(".bookChapter").each(function() { | $(".bookChapter").each(function() { | ||
var chapter = $(this).attr('id'); | var chapter = $(this).attr('id'); | ||
srcLink = imageObj[chapter]. | srcLink = imageObj[chapter].selected.src; | ||
$(this).attr('src',srcLink); | $(this).attr('src',srcLink); | ||
}); | }); | ||
Line 84: | Line 84: | ||
</script> | </script> | ||
<div ID = "Bookshelf" style="height:250px;> | <div ID = "Bookshelf" style="height:250px;> | ||
<a title="The WikiDoc Living Textbook of Hematology" href="/index.php/The_WikiDoc_Living_Textbook_of_Hematology"><img id ="Hematology" width="55" height="250" alt="Hematology-cyan.jpg" class="bookChapter" src=" | <a title="The WikiDoc Living Textbook of Hematology" href="/index.php/The_WikiDoc_Living_Textbook_of_Hematology"><img id ="Hematology" width="55" height="250" alt="Hematology-cyan.jpg" class="bookChapter" src=""></a><a title="The WikiDoc Living Textbook of Oncology" href="/index.php/The_WikiDoc_Living_Textbook_of_Oncology"><img id = "Oncology" width="66" height="250" alt="Oncology-cyan.jpg" class="bookChapter" src=""></a><a title="The WikiDoc Living Textbook of Gastroenterology" href="/index.php/The_WikiDoc_Living_Textbook_of_Gastroenterology"><img id = "Gastroenterology" width="61" height="250" alt="Gastroenterology-cyan.jpg" class="bookChapter" src=""></a><a title="The WikiDoc Living Textbook of Kidney and Urologic Diseases" href="/index.php/The_WikiDoc_Living_Textbook_of_Kidney_and_Urologic_Diseases"><img id = "Nephrology" width="70" height="250" alt="Nephrology-cyan.jpg" class="bookChapter" src=""></a><a title="The WikiDoc Living Textbook of Neurology" href="/index.php/The_WikiDoc_Living_Textbook_of_Neurology"><img id = "Neuro" width="44" height="250" alt="Neuro-cyan.jpg" class="bookChapter" src="/"></a><a title="The WikiDoc Living Textbook of Psychiatry" href="/index.php/The_WikiDoc_Living_Textbook_of_Psychiatry"><img id = "Psych" width="64" height="250" alt="Psychiatry-cyan.jpg" class="bookChapter" src=""></a><a title="The WikiDoc Living Textbook of Endocrinology" href="/index.php/The_WikiDoc_Living_Textbook_of_Endocrinology"><img id = "Endocrinology" width="46" height="250" alt="Endocrinology-cyan.jpg" class="bookChapter" src=""></a><a title="The WikiDoc Living Textbook of Cardiology" href="/index.php/The_WikiDoc_Living_Textbook_of_Cardiology"><img id = "Cardiology" width="79" height="250" alt="Cardiology-cyan.jpg" class="bookChapter" src=""></a><a title="The WikiDoc Living Textbook of Pulmonary Disease" href="/index.php/The_WikiDoc_Living_Textbook_of_Pulmonary_Disease"><img id = "Pulmonary" width="49" height="250" alt="Pulmonary-cyan.jpg" class="bookChapter" src=""></a><a title="The WikiDoc Living Textbook of Infectious Disease" href="/index.php/The_WikiDoc_Living_Textbook_of_Infectious_Disease"><img id = "InfectiousDisease" width="51" height="250" alt="Infectious-disease-cyan.jpg" class="bookChapter" src=""></a><a title="The WikiDoc Living Textbook of Pediatrics" href="/index.php/The_WikiDoc_Living_Textbook_of_Pediatrics"><img id = "Pediatrics" width="53" height="250" alt="Pediatrics-cyan.jpg" class="bookChapter" src=""></a><a title="Category:Emergency medicine" href="/index.php/Category:Emergency_medicine"><img id = "EmergencyMedicine" width="79" height="250" alt="Emergency-medicine-cyan.jpg" class="bookChapter" src=""></a><a title="The WikiDoc Living Textbook of Otolaryngology" href="/index.php/The_WikiDoc_Living_Textbook_of_Otolaryngology"><img id = "ENT" width="64" height="250" alt="Ent-cyan.jpg" class="bookChapter" src=""></a> | ||
</div> | </div> | ||
</includeonly> | </includeonly> |
Revision as of 19:13, 10 November 2014
Dynamic Bookshelf on Wikidoc