Articles

Links

All scripts are licenced:
Creative Commons 3.0 -NonCommercial

Valid HTML 4.01 Transitional


Speed: Book Flip


Are You Ready Kids?

I can't hear you.

Aye-Aye Captain!

OHHHHHHH

Who lives in a pineapple under the sea?

Sponge Bob Square Pants!

Absorbent and yellow and pourous is he!

Sponge Bob Square Pants!

If nautical nonsense be something you wish!

Sponge Bob Square Pants!

Then drop on the deck and flop like a fish!

Sponge Bob Square Pants!

Ready?

Sponge Bob Square Pants




Sponge Bob Square Pants

Sponge Bob Square Pants

Sponge Bob

Square Paaaaannttss!!!

Domains to be Licenced:










Copywrite: http://coastworx.com


Leave instructions
here or
leave it blank.


Description

December 08 2011 - Updated: Totally javascript Book Flip for page turn effects.
Bookflip engine has been totally rebuilt for better modern browser performance(IE8 & 9).
Place any html code within the books pages - div id="pages" (#no longer inside bookflip div). Each code block within the pages div will be treated as a seperate book page. Setting are adjustable in the script. Please read the readme.txt file inside the zip. Download Zip

Bookflip V4.0 Examples

Bookflip 4 example
Bookflip Shrek
Myer Catalog with Lightbox and Image Map

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

Bookflip V3.0 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 purchase a Commercial Licence to remove copywrite notices and link (below).
- Full credit to Scott Schiller (schillmania.com) for soundManager.

Commercial Licence per Domain:

A Commercial Licence has the same conditions as a Free 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

Callum Burns: How would you get this: http://flowplayer.org/tools/demos/tooltip/any-html.htm to work in each page? It doesn't seem to work at all. Help! Thanks
(30.01.2012, 16:13)

Will: @Callum, I don't do jquery.
(31.01.2012, 06:30)

priya: Hi ,
Is there any possibility to display the text without div , so that when the text exceeds the page height it will be automatically rendered to next page. Thank you
(01.02.2012, 01:39)

Will: no, not as part of the release. You need a custom solution.
(01.02.2012, 05:49)

Cammie: Cheers Will. Buttons working and am working on sitting it on a book cov design I did in ps. I am having a problem with the divs as not sure what all divs I should be containing within my (call it book frame div). I also am trying to make the last page transparent by using a PNG and it disnae seem to like that - it keeps replacing the transparent PNG with the 2nd last pg, my book is 58 pages but I need to make it 59 to get the last pages to turn. Back pg is pg58 and I make pg 59 blank
(01.02.2012, 06:47)

Cammie: Also mate, sorry for being a pest but - is there a limit to the amount of pages as I saw somewhere back on this forum where to alter the bookflip.js file but those values aren't there in mine...
(01.02.2012, 06:48)

Will: @Cammie, hi, transparency is an unsolved issue. See similar posts by Norbert.
There is no page limit, but be aware that all pages/images are loaded into the users browser at once so the larger the content the heavier the load on the users CPU and browsers Javascript engine. Just imagine all your pages/images laid out down the length of page & if that is an acceptable page size/load.
(01.02.2012, 16:06)

Cammie: Hey Will, eventuallt managed to get round the transparency issue by making my final page image the same background as the cover image I have it sitting on. It works perfectly in Chrome, Safari and Firefox but for some reason pages don't show up at all in IE9. Is there a compatabilty problem with explorer? Thanks again for all your advice
(03.02.2012, 01:58)

Will: @Cammie, send me a url where i can see it via the contact page.
(06.02.2012, 08:29)

Cammie: ok mate its temporarily here: http://www.heggie5.webspace.virginmedia.com/mosLink.html

As I said works spot on in Safari, FF and GChrome just on my wifes laptop using IE9 I noticed it just didn't work. I also have it on the other book link on that page (this one has the red folder background): http://www.heggie5.webspace.virginmedia.com/mikesLink.html
There is also a problem with my horizontal nav in IE9 which I am currently trying to solve...
(06.02.2012, 13:03)

Will: @Cammie, you have js error due to : <script type="text/javascript"><!--

</script>
</div> <!--[END of PAGES div-->

I havent tested on ie9 as i need to borrow a win7 notebook however I doubt it is a compatability issue. Clean up your html code and make sue it is valid rather than all the crap ps spits out. See how that goes. BTW, I trust the link back to this site will be reinstated until a licence is purchased.
(07.02.2012, 00:52)

Cammie: Will, you were spot on... Thanks, and yes my friend the link will be reinstated. Thanks for all your help
(10.02.2012, 06:51)

Aaron: Hi Will, how would I make it so that clicking a page acts as an <a> link instead of turning the page?
(13.02.2012, 13:28)

Will: @Aaron, there are a few ways it can be done. Set allowPageClick to false & using html skills, insert whatever element you want to use as the link on the page.
(13.02.2012, 15:55)

Aaron: Great, thanks for the fast reply Will!
(14.02.2012, 13:06)

Callum Burns: Hi Will, Thanks for the reply. Scrapped that idea for now anyway! Haha! How would I go about adding the shadow to the right side of the pages?
(26.02.2012, 12:16)

Will: @Callum, it's no easy thing. See function createShadow().
(28.02.2012, 21:23)

David: Hi Will, thanks for a great script. I wondered if it was possible to have elements on one page overlap across the centre margin into the next page, allowing for layouts that aren't a 50/50 split? Many thanks - David
(01.03.2012, 06:57)

Will: @David, each page is a div container, so no. Depending on the element you could recreate that effect but i suspect you know that already.
(01.03.2012, 17:52)

Pan: Hello Will,

I would like to thank you for what you have done so far. One question from my side: Is it possible to enable a zooming mechanism as well?

Regards,

Pan
(06.03.2012, 03:01)

Will: @Pan, show me an example where its been succesfully done with js. On the other hand there are plenty of ligtbox type scripts around if thats what your refering to. Cheers
(08.03.2012, 02:44)

Oscar Benjamin: Hi All - Great little script! Thanks Will - However my images are too large for my book siz (current size 500 X 561) How do i in the div where i specify my images changes or manipulate the size of my images. Hope to hear from you soon. Oscar (SA)
(08.03.2012, 12:44)

tinycottage: Can a video be placed on a page (div) ? or does it all have to be jpeg?
(08.03.2012, 14:08)

Will: @Oscar, @tiny, resize your images i guess. Please note the script drives html, it is independent of images or any other element/s so its up to you what you use to build your pages.
(11.03.2012, 00:01)

sarah: can anyone plz send m the code ??
(12.03.2012, 11:01)

Dave: I don't have a link from a website (testing but I have the same problem with the last two pages been blank and the last page as the back cover any solution??
(20.03.2012, 17:28)

Will: @Dave, check your html for properly closed elements. Try the validator http://validator.w3.org/
As for last page being back cover, there are no covers only content. If you want the last or first page blank then you can leave your first & last page divs empty is a way to do it.
(20.03.2012, 20:03)

Jordan Bryan: will, this is an amazing script, thank you. i am using your script for a website for one of my university modules on scripting which involves a lot of javascript. this javascript is needed to be implemented within the book flip and i cant seem to add javascript (such as lightbox, slideshows) into this script. any sugestions? thanks!!
(22.03.2012, 17:06)

Will: @Jordon: Bookflip certainly works correctly with other javascript, including lightbox modules or slideshows however with any scripting there is the possibility of the cross-use of Variable Names or clashes with broad calls to html elements. Check what the specific js errors are & why.
(22.03.2012, 18:39)

Daryll Chu: can we have two instances of the bookflip on the same page?
(23.03.2012, 13:55)

Will: @Daryll: possible if you use iframes.
(24.03.2012, 05:15)

Daryll Chu: is there an example for it?
(25.03.2012, 04:54)

Joe: Will. This is great thank you. I would like to make it so that I can have links on my page depending on the image you click on, however due to the (allowPageClick option) it is not possible. Any idea on what could be done to alter this, maybe directing it to only flip the page when corner is clicked. Also, I would like to go ahead and use this template further, does it need to be purchase or what are the specific copyrights. Please let me know. Thanks again and amazing job
(27.03.2012, 15:08)

Will: Yes, it is possible already. ahref tag works fine, and there are plenty of ways to do it just like normal html.

Licencing requirements are near the top of this page.
(27.03.2012, 17:06)

Will: Licencing agreement: http://coastworx.com/bookflip.php#licence
(27.03.2012, 21:16)

Joe: Will. Thank you

I plan on using this as the Meyer Catalog example above. I want to have the products directly clickable where they would link to a separate site. Using ahref tags, what is the best way to go about this if I am using one main image for each page (such as the circular).
Should the image be sliced? Thank you again
(28.03.2012, 09:20)

Joe: Will

Sorry to bother you again. I actually figured it out using image maps. However when you click the product, it does link to another page - although the page flips as well. Is there a way to stop this from happening?
(28.03.2012, 10:51)

JA: Deff am going to purchase.
I have added links to this and works fine - had to set the allowPageClick to "false" and added buttons in the header so that you could click the links and page would not flip - only when button is clicked. My question to you. Is there anyway to specify the onclick page flip to a certain region of the page (preferably bottom) or if not, perhaps any way to move buttons to left and right side of the pages. Thanks again and look forward to your response
(28.03.2012, 14:48)

Will: On page-1 of the demo above is text "Aye-Aye Captain." This is a ahref link and it works as expected opening a new tab.
JA, this works correctly regardless of allowPageClick value. I suggest there is an error or fault in the way your html is coded in relation to the link, I would need to see it.

Yes you can place navigation links anywhere within or outside the bookflip, there are plenty of ways to do it using an image, text or an invisible element with href or onclick events.
(28.03.2012, 18:01)

Will: To prevent the page turning when using IMAGE MAPS edit bookflip.js and find function whichElement(e,dir){
replace:
if(tname=="A" || tname=="INPUT" || pname=="A" || pname=="INPUT"){

with:
if(tname=="A" || tname=="INPUT" || pname=="A" || pname=="INPUT" || tname=="AREA" || pname=="AREA"){
(28.03.2012, 18:18)

Will: a quick lightbox and image map demo on the first page here: http://www.coastworx.com/myerv4.html
(28.03.2012, 19:55)

Diantha: I want to click on an image or text (i.e. in an index) inside an <a href="#go></a> and have the book jump to the bookflip page with that name <a name="go"> but it just jumps to the bottom of the web page and doesn't flip to the page I want. I named my div's so the drop down shows the names of the pages; I want it to work like that - when I click on a image and/or linked index. Can you help?
(29.04.2012, 23:00)

Will: @Dianth: autoflip() is what you want as the call has to ignite javascript turn effect.
<a href="#go" target="blank" onclick="autoFlip(5);return false;">text or image here</a>
(30.04.2012, 03:18)

Diantha: Sweet! Works like a charm now! I love this bookflip script - just what I was looking for. Thanks for making it available. And thanks for your quick answer to my question.
(30.04.2012, 08:51)

Aaron: Hi Will,
I want to license your bookflip for a client, but I have 1 issue that I can't get to work properly when integrating Lightbox2.51. For some reason image sets are not numbering properly (eg. lightbox[set1]) when inside the <div id="pages"> div. It's counting double the pages it should (eg. says Image 3 of 4 when there is only 2 images in the set). When outside the <div id="pages"> the sets are numbered correctly. Any ideas?

Thanks a bunch in advance.
Aaron
(16.05.2012, 19:45)

Jeff: Hi Will,
I am wondering why VideoLightBox and Slimbox will not work within the bookflip. But it does work outside the bookflip. Please help!
(16.05.2012, 21:41)

Will: @Jeff: I can only guess without see it or description of specific error. I can take a look if you like, send me the url via my contact form.
(17.05.2012, 04:43)

Will: @Aaron: Ditto my answer to Jeff. It's not possible to diagnose without seeing the specific installation, could be a million things. My code is valid however I can't vouch for anyone else's. Could be variables with the same name across scripts, anything really.
cheers
(17.05.2012, 04:48)

Aaron: Hmmm... I'm guessing the code duplicates whats inside the pages div, into the bookflip div? That would make sense as to why it's doubling the images.
(17.05.2012, 12:52)

selvabalaji: <a href="#go" target="blank" onclick="autoFlip(5);return false;">text or image here</a>
i have used the above code but i need to add the timeinterval how can i add the time interval..
(29.05.2012, 07:23)

50 of 472 comments (part 3) [ « ] [ » ] [ * ]

Your comment:

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