Widget:Bookshelf: Difference between revisions

Jump to navigation Jump to search
No edit summary
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'},
imageObj = new Image();
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:{src: '/images/3/38/Hematology-cyan.jpg'}, selected: {src: '/images/3/32/Hematology-selected.jpg'}, faded: {src: '/images/b/b9/Hematology-faded.jpg'}},
Gastroenterology: {normal: '/images/4/4a/Gastroenterology-cyan.jpg', selected: '/images/0/06/Gastroenterology-selected.jpg', faded: '/images/d/d4/Gastroenterology-faded.jpg'},
Oncology: {normal: {src: '/images/f/fa/Oncology-cyan.jpg'}, selected: {src: '/images/d/d6/Oncology-selected.jpg'}, faded: {src: '/images/9/9d/Oncology-faded.jpg'}},
Nephrology: {normal: '/images/0/0b/Nephrology-cyan.jpg', selected: '/images/2/23/Nephrology-selected.jpg', faded: '/images/a/a8/Nephrology-faded.jpg'},
Gastroenterology: {normal: {src: '/images/4/4a/Gastroenterology-cyan.jpg'}, selected: {src: '/images/0/06/Gastroenterology-selected.jpg'}, faded: {src: '/images/d/d4/Gastroenterology-faded.jpg'}},Nephrology: {normal: {src: '/images/0/0b/Nephrology-cyan.jpg'}, selected: {src: '/images/2/23/Nephrology-selected.jpg'}, faded: {src: '/images/a/a8/Nephrology-faded.jpg'}},
Neuro: {normal: '/images/d/dd/Neuro-cyan.jpg', selected: '/images/8/85/Neuro-selected.jpg', faded: '/images/d/d3/Neuro-faded.jpg'},
Neuro: {normal: {src: '/images/d/dd/Neuro-cyan.jpg'}, selected: {src: '/images/8/85/Neuro-selected.jpg'}, faded: {src: '/images/d/d3/Neuro-faded.jpg'}},
Psych: {normal: '/images/4/40/Psychiatry-cyan.jpg', selected: '/images/1/10/Psychiatry-selected.jpg', faded: '/images/5/52/Psychiatry-faded.jpg'},
Psych: {normal: {src: '/images/4/40/Psychiatry-cyan.jpg'}, selected: {src: '/images/1/10/Psychiatry-selected.jpg'}, faded: {src: '/images/5/52/Psychiatry-faded.jpg'}},
Endocrinology: {normal: '/images/7/7e/Endocrinology-cyan.jpg', selected: '/images/8/89/Endocrinology-selected.jpg', faded: '/images/5/54/Endocrinology-faded.jpg'},
Endocrinology: {normal: {src: '/images/7/7e/Endocrinology-cyan.jpg'}, selected: {src: '/images/8/89/Endocrinology-selected.jpg'}, faded: {src: '/images/5/54/Endocrinology-faded.jpg'}},
Cardiology: {normal: '/images/4/4c/Cardiology-cyan.jpg', selected: '/images/0/0a/Cardiology-selected.jpg', faded: '/images/e/eb/Cardiology-faded.jpg'},
Cardiology: {normal: {src: '/images/4/4c/Cardiology-cyan.jpg'}, selected: {src: '/images/0/0a/Cardiology-selected.jpg'}, faded: {src: '/images/e/eb/Cardiology-faded.jpg'}},
Pulmonary: {normal: '/images/0/04/Pulmonary-cyan.jpg', selected: '/images/4/45/Pulmonary-selected.jpg', faded: '/images/3/30/Pulmonary-faded.jpg'},
Pulmonary: {normal: {src: '/images/0/04/Pulmonary-cyan.jpg'}, selected: {src: '/images/4/45/Pulmonary-selected.jpg'}, faded: {src: '/images/3/30/Pulmonary-faded.jpg'}},
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: {src: '/images/2/27/Infectious-disease-cyan.jpg'}, selected: {src: '/images/0/09/Infectious-disease-selected.jpg'}, faded: {src: '/images/c/cd/Infectious-disease-faded.jpg'}},
Pediatrics: {normal: '/images/9/90/Pediatrics-cyan.jpg', selected: '/images/9/9f/Pediatrics-selected.jpg', faded: '/images/8/8a/Pediatrics-faded.jpg'},
Pediatrics: {normal: {src: '/images/9/90/Pediatrics-cyan.jpg'}, selected: {src: '/images/9/9f/Pediatrics-selected.jpg'}, faded: {src: '/images/8/8a/Pediatrics-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'},
EmergencyMedicine: {normal: {src: '/images/1/1a/Emergency-medicine-cyan.jpg'}, selected: {src: '/images/2/29/Emergency-medicine-selected.jpg'}, faded: {src: '/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: {src: '/images/3/3e/Ent-cyan.jpg'}, selected: {src: '/images/8/8a/Ent-selected.jpg'}, faded: {src: '/images/6/65/Ent-faded.jpg'}}
};
};
preload(imageObj);


$(".bookChapter").mouseover(function() {
$(".bookChapter").mouseover(function() {
Line 36: Line 88:
if(chapter == selected) {
if(chapter == selected) {


srcLink = imageObj[chapter].selected.src
srcLink = imageObj[chapter].selected


} else {
} else {


srcLink = imageObj[chapter].faded.src
srcLink = imageObj[chapter].faded


}
}
Line 53: Line 105:
var chapter = $(this).attr('id');
var chapter = $(this).attr('id');


srcLink = imageObj[chapter].normal.src;
srcLink = imageObj[chapter].normal;
$(this).attr('src',srcLink);
$(this).attr('src',srcLink);
});
});
});
});


});


function preload(imageObj) {
$(".bookchapter").attr('visibility','hidden');
$(".bookChapter").each(function() {
  var chapter = $(this).attr('id');
  srcLink = imageObj[chapter].selected.src;
  $(this).attr('src',srcLink);
});


$(".bookChapter").each(function() {
  var chapter = $(this).attr('id');
  srcLink = imageObj[chapter].faded.src;
  $(this).attr('src',srcLink);
});


$(".bookChapter").each(function() {
 
  var chapter = $(this).attr('id');
  srcLink = imageObj[chapter].normal.src;
  $(this).attr('src',srcLink);
});
});
</script>


$(".bookchapter").attr('visibility','visibile');
<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>
</script>
<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="/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 = "Neuro" 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 = "Psych" 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 = "InfectiousDisease" 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 = "EmergencyMedicine" 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>
</div>
</div>


</includeonly>
</includeonly>

Latest revision as of 15:53, 2 July 2020

 Dynamic Bookshelf on Wikidoc