Results 1 to 7 of 7

Thread: Book Flip Slideshow

  1. #1
    Join Date
    May 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Book Flip Slideshow

    --------------------------------------------------------------------------------

    http://www.dynamicdrive.com/dynamicindex14/bookflip.htm

    I am also having trouble with the flip book. The book does not appear, I only get a square with an x. I think I have the code entered correctly.
    Could you please check my code on the following page to see what I am doing wrong? Thank you.
    http://www.buddiesbuddies.org/events.htm

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    There may be other problems but, for starters you must have only one <body> tag on your page unless you are doing something unconventional for which there is no substitute. This is not such a case. Second, you have another script on the page with an onload handler. The fact that this second script is running means it has captured the onload handler from the bookflip script, preventing it from running. This can all be resolved like so (mind you there could be other problems but we will not know until these are fixed):

    1) Remove this line from the 'slider' script:
    Code:
    window.onload=fillup
    2) Replace your three <body> tags:
    Code:
    <body>
    <body onload="ImageBook()">
    <body bgcolor="#FFFFCC">
    with this one tag:
    Code:
    <body bgcolor="#FFFFCC" onload="ImageBook();fillup();">
    See if that doesn't get things working. If not, as I say, there are other problems.

    BTW, isn't that 'slider' script from Dynamic Drive? I recognize its 'fillup' handler. If so, you haven't left its credit intact, a violation of Dynamic Drive's usage agreement.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    May 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for getting back to me so soon, that one "fillup" line of code is what did it for me. As for the credits, I looked and that whole paragraph is in there at the very beginning of the script, am I missing something else?

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    /***********************************************
    * Conveyor belt slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
    ***********************************************/
    The above is what's missing from the other script on your page.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    May 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default LifeSaver

    Thank you very much. All is well, and the credits are at both scripts now.

  6. #6
    Join Date
    Nov 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by jscheuer1
    There may be other problems but, for starters you must have only one <body> tag on your page unless you are doing something unconventional for which there is no substitute. This is not such a case. Second, you have another script on the page with an onload handler. The fact that this second script is running means it has captured the onload handler from the bookflip script, preventing it from running. This can all be resolved like so (mind you there could be other problems but we will not know until these are fixed):

    1) Remove this line from the 'slider' script:
    Code:
    window.onload=fillup
    2) Replace your three <body> tags:
    Code:
    <body>
    <body onload="ImageBook()">
    <body bgcolor="#FFFFCC">
    with this one tag:
    Code:
    <body bgcolor="#FFFFCC" onload="ImageBook();fillup();">
    See if that doesn't get things working. If not, as I say, there are other problems.

    BTW, isn't that 'slider' script from Dynamic Drive? I recognize its 'fillup' handler. If so, you haven't left its credit intact, a violation of Dynamic Drive's usage agreement.
    I also encounter the same problem, get a square with an x. I've tried the fillup thing but it does not work in my page. Hope that someone could help me. Thank you!

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The 'fillup thing' was a modification for a specific implementation, necessitated only because another script that uses it as an event handler was also on the page. If you are not using this additional script, it will make no difference, perhaps make things worse, even. As indicated in the above thread, there can be many reasons for the book flip script not working. To diagnose what the trouble is with your implementation:

    PLEASE: Include the URL to your problematic webpage that you want help with.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •