Results 1 to 2 of 2

Thread: Need Help with inserting Book Flip Script in iWeb

  1. #1
    Join Date
    Dec 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need Help with inserting Book Flip Script in iWeb

    Script: Book Flip Script
    http://www.dynamicdrive.com/dynamicindex14/bookflip.htm

    I am trying to insert the Book Flip Script into my website via iweb, which I have done successfully with other scripts. My problem here is that all I can see on my site is an empty book frame!? how exactly and where am I to insert the image links? I thought I knew but apparently I need someone to hold my hand

    1) I do not understand what to do with the placeholder once I have downloaded it?
    2) I also do not understand what to do with the following instruction:

    Step 3: Finally, add the below onload event handler inside the <BODY> tag itself:

    <body onload="ImageBook()">

    Please help, thank you so much!

  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

    For info on how to represent your images in the code, and what to do about the placeholder image (you don't need it) see this thread:

    http://www.dynamicdrive.com/forums/s...892#post211892

    About the body onload thing - Every page is required to have a body tag and only one body tag. It contains all of the content for the page. Scripts, styles, the page title and meta tags go in the head section. A typical blank page with the opening body tag highlighted would look like so:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    
    </head>
    <body>
    
    </body>
    </html>
    Now your opening body tag may already have other junk in it. That doesn't really matter though in most cases. It could look something like:

    Code:
    <body bgcolor="black" text="red" link="yellow" alink="orange" vlink="white" background="image.gif">
    If you have a plain one like:

    Code:
    <body>
    make it like:

    Code:
    <body onload="ImageBook()">
    If it has other stuff like my example of the other stuff it might have, make it like:

    Code:
    <body onload="ImageBook()" bgcolor="black" text="red" link="yellow" alink="orange" vlink="white" background="image.gif">
    If you want more help:

    Please post a link to the page on your site that contains the problematic code so we can check it out.
    - 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
  •