In the code it has:
Code:
/***********************************************
* Book Flip slideshow script- © Ger Versluis 2003
* Permission granted to DynamicDrive.com to feature script
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
/********************************************************
Create a div with transparent place holder in your html
<div id="Book" style="position:relative">
<img src="placeholder.gif" width="144" height="227">
</div>
width = 2*book image width +4 height = book image height+2
Insert onload in body tag
<body onload="ImageBook()">
*********************************************************/
All of that (highlighted and not highlighted) are just credit/comments/instructions. The highlighted part is comments/instructions. None of it does anything, it's all just for informational purposes, and unfortunately the instruction part is not real well thought out. It means to tell you what you should have here (highlighted section):
Code:
. . . on B_Stp(){B_Stppd=true;this.style.cursor=this.lnk?"pointer":"default"}
function B_Rstrt(){B_Stppd=false}
</script>
<div id="Book" style="position:relative">
<img src="placeholder.gif" width="144" height="227">
</div>
<p><font face="A . . .
But you really don't need the placeholder.gif or its image tag. What goes there should be like so:
Code:
<div id="Book" style="position:relative;width:144px;height:227px;margin:0 auto;"></div>
The margin:0 auto; is what will center it. The width and height (red and green, respectively in the above) should be as instructed (here stated a bit more clearly):
width = 2 times the Book_Image_Width + 4
height = Book_Image_Height + 2
Except if you are doing a vertical book (var Book_Vertical_Turn=1;). Then it's sort of reversed:
width = Book_Image_Width + 2
height = 2 times the Book_Image_Height + 4
But since you are probably not doing a vertical book, don't worry about that second one at the moment.
Now, the only other thing is that your page must have a valid URL DOCTYPE as the very first thing in its HTML source code. If it doesn't, this one is probably the one you should use*:
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
This goes at the very beginning of the source, ex:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
*I say probably because for a novice it is the least likely to cause problems, but the best one is:
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
Bookmarks