Widget:Bookshelf: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:




var imageObj = {Hematology: {normal: '/images/3/38/Hematology-cyan.jpg', selected: '/images/3/32/Hematology-selected.jpg', faded: '/images/b/b9/Hematology-faded.jpg'},
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'},
Oncology: {normal: '/images/f/fa/Oncology-cyan.jpg', selected: '/images/d/d6/Oncology-selected.jpg', faded: '/images/9/9d/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 24: Line 24:
};
};


loadImg = new Image();
loadImg = new Image(); for(var chapter in imageObj) {for(var type in Chapter){loadImg[chapter][type].src = imageObj[chapter][type]}}
for(var chapter in imageObj) {
for(var type in Chapter){
loadImg[chapter][type].src = imageObj[chapter][type]
}
}
 
myObject[propertyName]
}


$(".bookChapter").mouseover(function() {
$(".bookChapter").mouseover(function() {

Revision as of 18:46, 10 November 2014

 Dynamic Bookshelf on Wikidoc