Widget:Bookshelf: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Gerald Chi (talk | contribs) mNo edit summary |
||
(14 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
<includeonly> | <includeonly> | ||
<div class="hidden"> | |||
<script type="text/javascript"> | |||
<!--//--><![CDATA[//><!-- | |||
var images = new Array() | |||
function preload() { | |||
for (i = 0; i < preload.arguments.length; i++) { | |||
images[i] = new Image() | |||
images[i].src = preload.arguments[i] | |||
} | |||
} | |||
preload( | |||
"http://www.wikidoc.org/images/3/38/Hematology-cyan.jpg", | |||
"http://www.wikidoc.org/images/3/32/Hematology-selected.jpg", | |||
"http://www.wikidoc.org/images/b/b9/Hematology-faded.jpg", | |||
"http://www.wikidoc.org/images/f/fa/Oncology-cyan.jpg", | |||
"http://www.wikidoc.org/images/d/d6/Oncology-selected.jpg", | |||
"http://www.wikidoc.org/images/9/9d/Oncology-faded.jpg", | |||
"http://www.wikidoc.org/images/4/4a/Gastroenterology-cyan.jpg", | |||
"http://www.wikidoc.org/images/0/06/Gastroenterology-selected.jpg", | |||
"http://www.wikidoc.org/images/d/d4/Gastroenterology-faded.jpg", | |||
"http://www.wikidoc.org/images/0/0b/Nephrology-cyan.jpg", | |||
"http://www.wikidoc.org/images/2/23/Nephrology-selected.jpg", | |||
"http://www.wikidoc.org/images/a/a8/Nephrology-faded.jpg", | |||
"http://www.wikidoc.org/images/d/dd/Neuro-cyan.jpg", | |||
"http://www.wikidoc.org/images/8/85/Neuro-selected.jpg", | |||
"http://www.wikidoc.org/images/d/d3/Neuro-faded.jpg", | |||
"http://www.wikidoc.org/images/4/40/Psychiatry-cyan.jpg", | |||
"http://www.wikidoc.org/images/1/10/Psychiatry-selected.jpg", | |||
"http://www.wikidoc.org/images/5/52/Psychiatry-faded.jpg", | |||
"http://www.wikidoc.org/images/7/7e/Endocrinology-cyan.jpg", | |||
"http://www.wikidoc.org/images/8/89/Endocrinology-selected.jpg", | |||
"http://www.wikidoc.org/images/5/54/Endocrinology-faded.jpg", | |||
"http://www.wikidoc.org/images/4/4c/Cardiology-cyan.jpg", | |||
"http://www.wikidoc.org/images/0/0a/Cardiology-selected.jpg", | |||
"http://www.wikidoc.org/images/e/eb/Cardiology-faded.jpg", | |||
"http://www.wikidoc.org/images/0/04/Pulmonary-cyan.jpg", | |||
"http://www.wikidoc.org/images/4/45/Pulmonary-selected.jpg", | |||
"http://www.wikidoc.org/images/3/30/Pulmonary-faded.jpg", | |||
"http://www.wikidoc.org/images/2/27/Infectious-disease-cyan.jpg", | |||
"http://www.wikidoc.org/images/0/09/Infectious-disease-selected.jpg", | |||
"http://www.wikidoc.org/images/c/cd/Infectious-disease-faded.jpg", | |||
"http://www.wikidoc.org/images/9/90/Pediatrics-cyan.jpg", | |||
"http://www.wikidoc.org/images/9/9f/Pediatrics-selected.jpg", | |||
"http://www.wikidoc.org/images/8/8a/Pediatrics-faded.jpg", | |||
"http://www.wikidoc.org/images/1/1a/Emergency-medicine-cyan.jpg", | |||
"http://www.wikidoc.org/images/2/29/Emergency-medicine-selected.jpg", | |||
"http://www.wikidoc.org/images/3/39/Emergency-medicine-faded.jpg", | |||
"http://www.wikidoc.org/images/3/3e/Ent-cyan.jpg", | |||
"http://www.wikidoc.org/images/8/8a/Ent-selected.jpg", | |||
"http://www.wikidoc.org/images/6/65/Ent-faded.jpg" | |||
) | |||
//--><!]]> | |||
</script> | |||
</div> | |||
<script type = "text/javascript"> | <script type = "text/javascript"> | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
mw.loader.load('mediaWiki.user'); | mw.loader.load('mediaWiki.user'); | ||
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: '/images/9/9d/Oncology-faded.jpg'}, | |||
imageObj = {Hematology: {normal | Gastroenterology: {normal: '/images/4/4a/Gastroenterology-cyan.jpg', selected: '/images/0/06/Gastroenterology-selected.jpg', faded: '/images/d/d4/Gastroenterology-faded.jpg'}, | ||
Oncology: {normal | Nephrology: {normal: '/images/0/0b/Nephrology-cyan.jpg', selected: '/images/2/23/Nephrology-selected.jpg', faded: '/images/a/a8/Nephrology-faded.jpg'}, | ||
Gastroenterology: {normal | Neuro: {normal: '/images/d/dd/Neuro-cyan.jpg', selected: '/images/8/85/Neuro-selected.jpg', faded: '/images/d/d3/Neuro-faded.jpg'}, | ||
Neuro: {normal | Psych: {normal: '/images/4/40/Psychiatry-cyan.jpg', selected: '/images/1/10/Psychiatry-selected.jpg', faded: '/images/5/52/Psychiatry-faded.jpg'}, | ||
Psych: {normal | Endocrinology: {normal: '/images/7/7e/Endocrinology-cyan.jpg', selected: '/images/8/89/Endocrinology-selected.jpg', faded: '/images/5/54/Endocrinology-faded.jpg'}, | ||
Endocrinology: {normal | Cardiology: {normal: '/images/4/4c/Cardiology-cyan.jpg', selected: '/images/0/0a/Cardiology-selected.jpg', faded: '/images/e/eb/Cardiology-faded.jpg'}, | ||
Cardiology: {normal | Pulmonary: {normal: '/images/0/04/Pulmonary-cyan.jpg', selected: '/images/4/45/Pulmonary-selected.jpg', faded: '/images/3/30/Pulmonary-faded.jpg'}, | ||
Pulmonary: {normal | InfectiousDisease: {normal: '/images/2/27/Infectious-disease-cyan.jpg', selected: '/images/0/09/Infectious-disease-selected.jpg', faded: '/images/c/cd/Infectious-disease-faded.jpg'}, | ||
InfectiousDisease: {normal | Pediatrics: {normal: '/images/9/90/Pediatrics-cyan.jpg', selected: '/images/9/9f/Pediatrics-selected.jpg', faded: '/images/8/8a/Pediatrics-faded.jpg'}, | ||
Pediatrics: {normal | 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 | ENT: {normal: '/images/3/3e/Ent-cyan.jpg', selected: '/images/8/8a/Ent-selected.jpg', faded: '/images/6/65/Ent-faded.jpg'} | ||
ENT: {normal | |||
}; | }; | ||
$(".bookChapter").mouseover(function() { | $(".bookChapter").mouseover(function() { | ||
Line 36: | Line 88: | ||
if(chapter == selected) { | if(chapter == selected) { | ||
srcLink = imageObj[chapter].selected | srcLink = imageObj[chapter].selected | ||
} else { | } else { | ||
srcLink = imageObj[chapter].faded | srcLink = imageObj[chapter].faded | ||
} | } | ||
Line 53: | Line 105: | ||
var chapter = $(this).attr('id'); | var chapter = $(this).attr('id'); | ||
srcLink = imageObj[chapter].normal | srcLink = imageObj[chapter].normal; | ||
$(this).attr('src',srcLink); | $(this).attr('src',srcLink); | ||
}); | }); | ||
}); | }); | ||
}); | }); | ||
</script> | |||
<div ID = "Bookshelf"> | |||
<a title="The WikiDoc Living Textbook of Hematology" href="/index.php/The_WikiDoc_Living_Textbook_of_Hematology"><img id ="Hematology" width="auto" height="auto" 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="auto" height="auto" 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="auto" height="auto" 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="auto" height="auto" 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 = "Neuro" width="auto" height="auto" 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 = "Psych" width="auto" height="auto" 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="auto" height="auto" 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="auto" height="auto" 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="auto" height="auto" 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 = "InfectiousDisease" width="auto" height="auto" 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="auto" height="auto" alt="Pediatrics-cyan.jpg" class="bookChapter" src="/images/9/90/Pediatrics-cyan.jpg"></a><a title="The WikiDoc Living Textbook of Emergency Medicine" href="/index.php/The_WikiDoc_Living_Textbook_of_Emergency_Medicine"><img id = "EmergencyMedicine" width="auto" height="auto" 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="auto" height="auto" alt="Ent-cyan.jpg" class="bookChapter" src="/images/3/3e/Ent-cyan.jpg"></a> | |||
<div ID = "Bookshelf" | |||
<a title="The WikiDoc Living Textbook of Hematology" href="/index.php/The_WikiDoc_Living_Textbook_of_Hematology"><img id ="Hematology" width=" | |||
</div> | </div> | ||
</includeonly> | </includeonly> |
Latest revision as of 15:53, 2 July 2020
Dynamic Bookshelf on Wikidoc