Results 1 to 3 of 3

Thread: Show portions of html

  1. #1
    Join Date
    Jun 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Show portions of html

    Iam working on pagination of html.

    I would like to show one page at a time and bring next page when user clicks pageup or down.

    My document content will be as shown.

    <body>
    <div pageno="0" style="page-break-before:always"></div>
    PAGE ONE CONTENTS

    <div pageno="1" style="page-break-before:always"></div>

    PAGE TWO CONTENTS
    <div pageno="2" style="page-break-before:always"></div> ... <div pageno="n"></div>
    </body>


    My questions are
    1. Can I show content between any two divs alone?
    2. When user clicks on page up or down how do I bring next or prev page to windows top position?

    ps: My contents are not enclosed in divs.div just acts as a separator.

    Thanks in Advance,
    Krithika

  2. #2
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi, i could not get exactly what u r saying about,but check this link regarding pagination

    http://www.dynamicdrive.com/dynamici...pagination.htm

  3. #3
    Join Date
    May 2006
    Location
    Alaska
    Posts
    163
    Thanks
    5
    Thanked 2 Times in 2 Posts

    Default

    By pageup and pagedown, do you mean on the keyboard? or something you would make? And you could use javascript to change the styles.
    document.getElementById("id").style.display = "block"; would make it not there and document.getElementById("id").style.display = ""; would make it visible.

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
  •