PDA

View Full Version : Show portions of html



krithika
06-29-2007, 04:52 AM
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

jcnaidu
06-29-2007, 09:52 AM
Hi, i could not get exactly what u r saying about,but check this link regarding pagination

http://www.dynamicdrive.com/dynamicindex17/virtualpagination.htm

???
07-01-2007, 03:39 PM
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.