Widget:Bookshelf: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
var imageObj = { | var imageObj = { | ||
Hematology: {normal: ‘/images/3/38/Hematology-cyan.jpg’, selected: ‘/images/3/32/Hematology-selected.jpg’, faded: ‘/images/b/b9/Hematology-faded.jpg’ }, | |||
Oncology: {normal: '/images/f/fa/Oncology-cyan.jpg', selected: '/images/d/d6/Oncology-selected.jpg', faded: '/imagesdex.php/File:Oncology-faded.jpg' }, | |||
Gastroenterology: {normal: '/images/4/4a/Gastroenterology-cyan.jpg', selected: '/images/0/06/Gastroenterology-selected.jpg', faded: '/images/d/d4/Gastroenterology-faded.jpg' }, | Gastroenterology: {normal: '/images/4/4a/Gastroenterology-cyan.jpg', selected: '/images/0/06/Gastroenterology-selected.jpg', faded: '/images/d/d4/Gastroenterology-faded.jpg' }, | ||
Line 33: | Line 33: | ||
EmergencyMedicine: {normal: '/images/1/1a/Emergency-medicine-cyan.jpg', selected: '/images/2/29/Emergency-medicine-selected.jpg', faded: '/images/3/39/Emergency-medicine-faded.jpg' }, | EmergencyMedicine: {normal: '/images/1/1a/Emergency-medicine-cyan.jpg', selected: '/images/2/29/Emergency-medicine-selected.jpg', faded: '/images/3/39/Emergency-medicine-faded.jpg' }, | ||
ENT: {normal: '/images/3/3e/Ent-cyan.jpg', selected: '/images/8/8a/Ent-selected.jpg', faded: '/images/6/65/Ent-faded.jpg' } | ENT: {normal: '/images/3/3e/Ent-cyan.jpg', selected: '/images/8/8a/Ent-selected.jpg', faded: '/images/6/65/Ent-faded.jpg' } | ||
}; | |||
$(".bookChapter").mouseover(function() { | |||
var selected = $(this).attr('id'); | |||
$(".bookChapter").each(function(){ | |||
var chapter = $(this).attr('id'); | |||
srcLink = ''; | |||
if(chapter == selected) { | |||
srcLink = imageObj[chapter].selected | |||
} else { | |||
srcLink = imageObj[chapter].faded | |||
} | |||
$(this).attr('id',srcLink); | |||
}); | |||
}); | |||
}); | }); | ||
</script> | </script> | ||
<div ID = "Bookshelf"> | <div ID = "Bookshelf"> | ||
<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" src="/images/3/38/Hematology-cyan.jpg"></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" src="/images/f/fa/Oncology-cyan.jpg"></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" src="/images/4/4a/Gastroenterology-cyan.jpg"></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" src="/images/0/0b/Nephrology-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Neurology" href="/index.php/The_WikiDoc_Living_Textbook_of_Neurology"><img id = "Neurology" width="44" height="250" alt="Neuro-cyan.jpg" src="/images/d/dd/Neuro-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Psychiatry" href="/index.php/The_WikiDoc_Living_Textbook_of_Psychiatry"><img id = "Psychiatry" width="64" height="250" alt="Psychiatry-cyan.jpg" src="/images/4/40/Psychiatry-cyan.jpg"></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" src="/images/7/7e/Endocrinology-cyan.jpg"></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" src="/images/4/4c/Cardiology-cyan.jpg"></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" src="/images/0/04/Pulmonary-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Infectious Disease" href="/index.php/The_WikiDoc_Living_Textbook_of_Infectious_Disease"><img id = "Infectious Disease" width="51" height="250" alt="Infectious-disease-cyan.jpg" src="/images/2/27/Infectious-disease-cyan.jpg"></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" src="/images/9/90/Pediatrics-cyan.jpg"></a><a title="Category:Emergency medicine" href="/index.php/Category:Emergency_medicine"><img id = "Emergency Medicine" width="79" height="250" alt="Emergency-medicine-cyan.jpg" src="/images/1/1a/Emergency-medicine-cyan.jpg"></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" src="/images/3/3e/Ent-cyan.jpg"></a> | <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="/images/3/38/Hematology-cyan.jpg"></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="/images/f/fa/Oncology-cyan.jpg"></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="/images/4/4a/Gastroenterology-cyan.jpg"></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="/images/0/0b/Nephrology-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Neurology" href="/index.php/The_WikiDoc_Living_Textbook_of_Neurology"><img id = "Neurology" width="44" height="250" alt="Neuro-cyan.jpg" class="bookChapter" src="/images/d/dd/Neuro-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Psychiatry" href="/index.php/The_WikiDoc_Living_Textbook_of_Psychiatry"><img id = "Psychiatry" width="64" height="250" alt="Psychiatry-cyan.jpg" class="bookChapter" src="/images/4/40/Psychiatry-cyan.jpg"></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="/images/7/7e/Endocrinology-cyan.jpg"></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="/images/4/4c/Cardiology-cyan.jpg"></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="/images/0/04/Pulmonary-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Infectious Disease" href="/index.php/The_WikiDoc_Living_Textbook_of_Infectious_Disease"><img id = "Infectious Disease" width="51" height="250" alt="Infectious-disease-cyan.jpg" class="bookChapter" src="/images/2/27/Infectious-disease-cyan.jpg"></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="/images/9/90/Pediatrics-cyan.jpg"></a><a title="Category:Emergency medicine" href="/index.php/Category:Emergency_medicine"><img id = "Emergency Medicine" width="79" height="250" alt="Emergency-medicine-cyan.jpg" class="bookChapter" src="/images/1/1a/Emergency-medicine-cyan.jpg"></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="/images/3/3e/Ent-cyan.jpg"></a> | ||
Revision as of 16:31, 10 November 2014
Dynamic Bookshelf on Wikidoc