Sorry, I've been really busy this week. Here is the URL, for a site I am working on.
http://tridm.org/books/en/fifthgospel/
Zoom works fine of course, but the little circular arrow to the left of the book graphic, when click should toggle front cover/back cover of book. It did work before I added the class=magnify. Is there a way to make both work? It flipped by a simple inline javascript that I wrote called imgrotate. Below is the javascript for that:
Code:
//used to toggle from front to back on image clicks
function imgrotate(img_name1,img1_srcside1,img1_srcside2,img_name2,img2_srcside1,img2_srcside2) {
if ( typeof imgrotate.side == 'undefined' ) {
// It has not... perform the initilization
imgrotate.side = 2;
}
else {
if (imgrotate.side==1) {
imgrotate.side=2;
}
else {
imgrotate.side=1;
}
} //if defined
if (imgrotate.side==2){
alert(img2_srcside2);
document[img_name1].src = img1_srcside2;
document[img_name2].src = img2_srcside2;
}
else{
alert(img_name2 + '.src=' + img2_srcside1);
document[img_name1].src = img1_srcside1;
document[img_name2].src = img2_srcside1;
}
return true;
}//imgrotate
The alerts are firing off (those are just for debugging), and the circular arrow button image toggles as always from one direction to the other. The images coming up for the book, in the alert(), are the correct image names. I think the zoom script is somehow cloning or doing something such that my script can no longer change the image back and forth.
I would certainly appreciate help getting this going. This is for a new book that is about to be released and I need the page working 100%.
TIA,
Shane
Bookmarks