Speed: Page: Shrek Book Flip Demo



Description

August 11 2008 - Updated: Totally javascript Book Flip for page turn effects.
Sound Manager is the only Flash component courtesy of Scott Schiller (schillmania.com).
Ideal for Online story books as a teachers aid or just for fun.
Now has the ability to utilize html within each page and still maintain proper layout.
Place any html code within the books pages - div id="myBook". Each code block within the myBook div will be treated as a seperate page. Setting are adjustable in the script. Download Zip

Examples

Myer Catalog
Fun with Borders
Gratitude

Free Licence

This Script is wholly developed and owned by CoastWorx.com. Copywrite: http://wwww.coastworx.com/ Licenced under Creative Commons - Non Commercial | Legal Code for Non Commercial use.

- You are free to use this script so long as all copywrite notice/s stays intact in its entirety.
- You are free to use this script so long as a link back to coastworx.com stays intact and remains visible.
- You are NOT Permitted to claim this script as your own or use this script for commercial purposes without the express permission of CoastWorx Technologies!
- Commercial Purposes is defined as profiting directly from the script, eg. profiting directly from the functionality of the script. eg a catalog type enterprise or advertising that utilises the script.
- Please make a contribution to remove copywrite notices and link for Non-Commercial use only(button on the left).
- Full credit to Scott Schiller (schillmania.com) for soundManager.

Commercial Licence per Domain:

A Commercial Licence has the same conditions as a non-commercial licence with these exceptions:
  • Can be used for Commercial Websites
  • Copyright notices may be removed
  • Unlimited copies may be used on a per domain basis
  • Cannot be resold or claimed as your own
Domains to be Licenced:

Comments

Jim: Any idea of how to have the pages flip automatically? I would like to have a 5 second delay and then the page flips. Is this possible? Thanks in advance for any help.
(14.12.2009, 18:49)

Brad: Anyway to have a slight curl at top end of the page ?
(23.12.2009, 10:22)

Anonym: "Anyway to have a slight curl at top end of the page ?" - - By putting a curl yourself on the corners of your background graphics.
(25.12.2009, 13:00)

Jazzer: I just downloaded this and congrats Will...nice work. No complaints here just wondering how I can pad the text on the pages so they don't run right to the edge or center. Say 10 pixels left and right on each page would work fine. Thanks. - Jazzer
(11.01.2010, 22:43)

Anonym: Jazzer, just use CSS formatting on the page divs or, if CSS ain't your style, add a table with cell padding inside each div. Pretty easy to Google it if'n you don't know how. The great thing about Will's script is you can do pretty much anything to the page divs that you can do with normal HTML or CSS.
(12.01.2010, 03:04)

Jazzer: I'm fine with html and OK with css but after several hours of attempting to add some padding to each page and searching online for answers I came back here to ask.
(12.01.2010, 13:46)

Anonym: Weird. So adding style="padding-left:10px; padding-right:10px" to the page divs (or a class defined as such) didn't work for you, and neither did adding a table where cellpadding="10"? Dunno what to tell you; works just fine for me, and Will hasn't been commenting here lately.
(13.01.2010, 23:08)

Jazzer: Well then I guess you have nothing more to tell. I "understand how" to write the code but regardless of where it's applied I am not seeing the end result of padding. I am refraining from adding tables. I'll move along now.
(14.01.2010, 13:41)

Will: Jazzer, adding padding to a div is the same as adding padding to any div eg.padding:10px; its up to you however to ensure you page contents stay within the confines of the page width & page height(pWidth, pHeight) settings. I'd recommend a child div and apply the padding to that: <div name="Home" style="background:#055123 url(spongebob300/page0.jpg);color:#ffffff;"> - <div style="padding:10px;" align=center> - <h1>Are You Ready Kids?</h1> - </div> - </div>
(14.01.2010, 19:50)

Michael: Awesome script Will I'm not so hot on the coding side but im trying to get into it. the problem im having is when i add new pages it wont allow me to turn the page when i click on it. i know this is a bsic question but can you help please. thanks
(16.01.2010, 12:43)

Michael: And if it helps in the drop down menu i can see the page 10 but it only goes as far as page 9 and then stops and displays page 9 in the drop down menu :s
(16.01.2010, 13:28)

Will: I can only guess, go back to the original script to eliminate all introduced errors and add you new pages one by one until the problem presents itself.
(16.01.2010, 21:41)

Michael: Thanks im not sure why but i seem to have to add 2 pages as opposed to 1 to make it work. Although I think that make sense in my head all of a sudden. Thanks
(18.01.2010, 19:06)

Josh: Hey, I've been working with this code for a week and i got a book with 35 pages. For some reason it won't display anything past 15 either in the drop box to select a specific page or when you hit next to go past page 15. Any clue why?
(08.02.2010, 13:50)

Will: check your html code for each page for properly closed divs etc..., there is no limitation inbuilt, only browser limitation.
(10.02.2010, 09:42)

Weidong Zhang: Will, you are definitely a genius. I spent days looking for a JS page flip plugin, and yours is definitely the best. I wonder if your lib can support one page one screen flipping effect, besides the default two page mode. Thanks for your time
(18.04.2010, 13:30)

Will: I'm not exactly sure what i "one page one screen flipping effect" is?
(18.04.2010, 20:51)

weidong zhang: Will, what I mean is the iPad iReader effect, which has one page taking up the screen center at one time.
(19.04.2010, 12:53)

Hamdy: Thank you Will very much for your professional code. - The thing that is missed and will make the script very good is to let the user selects if he wants to flip the book from left to right or from right to lift.
(29.04.2010, 17:09)

Will: Thank you. This was raised previously and addressed.
(01.05.2010, 03:01)

Anonym: Thanks for this great code, I'm not into programming and I wanted something without Flash. I found a way to make it autoflipping by adding "window.setInterval('gonext()',1000);" at the end of the ini, but I can't find how to stop the autoflipping while the mouse is over the book (and restart when it is out). I tried many things and I guess it's a simple javascript code... Anybody to help me ? Thanks!
(12.05.2010, 10:14)

Pat: Will, what is the procedure to remove the shadow on the left side of the left page?
(20.05.2010, 19:29)

Will: pageShadow=true; //true or false, display shadow along the length of inside right page
(21.05.2010, 17:13)

Warren: Where can I locate the "book" graphics to use on my with with this awesome code?
(29.05.2010, 12:41)

Mark: I am new to javascript... how can I change the pWidth so all of my images show up completely? (they are all cropped) - Thanks!
(29.05.2010, 18:37)

Warren: Does anyone know where to edit the X and Y coordinates to nudge the location of the pages? I am trying to match my pages up to the graphic behind them.
(01.06.2010, 11:38)

Michael: Is there a way to make the individual pages display full on the html page so that I can individually edit them? I only see a narrow column with the tops of each page showing
(02.06.2010, 09:57)

Will: The zip has been updated to include "read me" type help file.
(03.06.2010, 02:19)

Michael: Thanks but for some reason, I'm still only seeing a small portion of the top of the page rather than the complete jpg. I went in and adjusted the code accordingly but it's still not letting me see the full image. Love the flip though!
(03.06.2010, 08:33)

Michael: To continue my problem from above, I would like to see the full page so that I can add a external link when necessary but when I only see the top bit of my image, I can't see where to place text further down on the page.
(03.06.2010, 10:00)

Will: Michael, please read the help file pertaining to displaying a page div as a stand-alone html file. Have you added the width and height dimensions to the div? Some basic html skill is required, but its not my purpose.
(03.06.2010, 11:23)

Constantin: Great script! Thanks!
(20.06.2010, 14:51)

LunaPro2333: Would I be able to charge someone if I used this script on a XHTML page I develop?
(29.06.2010, 23:39)

Will: No you cannot "sell" the book flip. Charging someone to install it is a separate matter however.
(29.06.2010, 23:44)

Constantin: Hi! I'm using the script only with images(51). Sometimes, when I'm on the first page and choose the last one from the select control, it stops 1-2 pages behind in Firexot and about 10 pages in Safari. This happens only when doIncrementalAutoFlip is set to true. - Any ideas? - Thanks!
(03.07.2010, 03:57)

Constantin: Please ignore the previous comment. I didnt't see it was addressed before.
(03.07.2010, 04:05)

pautrat: hi, it is possible to do an autoplay ? thanks
(03.07.2010, 11:24)

thomas davis: how can i add thumbnails to this effect
(13.07.2010, 15:03)

thomas davis: the javascript is cool now is there anyway that i can change the selection option to display little pictures of the page instead of the name or the page number.....in other words can i change the select tag to display thumbnails of the page.i really need help with this
(14.07.2010, 07:02)

thomas davis: will pls i really need to add this
(14.07.2010, 08:18)

Heiko Prein: Hello! I just found your exciting website with this version of bookflip. - My customer would like to have his website - which is flash - also put into html! For smartphones and computers without using flash! - So, I would like to use your scripts and work in html! - Could You please check it and tell me what I would have to pay! - Thank You!!! - Kind regards, - Heiko (Germany, Nuremberg)
(14.07.2010, 09:49)

timmy: wonderful script dude you are of the chain but how do i replace the name of the page selector in the flipSelect to img..this way it would display images instead of the names.
(15.07.2010, 09:49)

tony ayling: Hi Will - excellent - thanks. - I have used the script on http://mydummysite.com.au/teeflip.html#q1?autoflip=8 - I have a small annoying problem htat i cant seem to fix - probably css - if you flip the book forwards all is fine but backwards - it stretches to the far left of the screen and not the page div or width. Would really appreciate any suggestions to fix. - Thanks for the great work. - Kind regards - Tony Ayling
(20.07.2010, 19:51)

Will: @tony ayling; http://validator.w3.org/ - - Line 118, Column 6: end tag for element "div" which is not open
(21.07.2010, 02:18)

JK: Hi Will, this is excellent! Is there anyway to make this work without having the inline JavaScript on the html page? So all JS in one external file? Thanks
(23.07.2010, 05:31)

JK: ignore me ... figured out the external JS file needs to go at the bottom of the html page to work.
(23.07.2010, 05:58)

Tony: thanks for the validator tip Will but I can see the problem - no extra tags.
(27.07.2010, 05:08)

Tony: sorry - that is - I cant see the problem.
(27.07.2010, 05:47)

Will: Well, something is not right in your implementation. Perhaps you should go back to the original scripts, I'll have a quick look in the meantime.
(27.07.2010, 08:15)

Will: Replace your bookflip.js with original from the download.
(27.07.2010, 08:44)

50 of 169 comments (part 1) [ » ] [ * ]

Your comment:

Name:
E-mail or homepage:
Enter Turning Number: