我使用小册子插件为我的内容制作翻书效果Web Browser
,所以一切都很好。
我从 db 检索我的文本数据我想编写一个函数,将文本(已经从 db 检索到)转换为页面,例如,如果我的文本量大于页面,它会将其余文本放在下一页等等.
html代码
<html >
<head>
<!-- page css -->
<link href="Booklet%20-%20jQuery%20Plugin_files/base0000.css" type="text/css" rel="stylesheet" media="screen, projection, tv">
<link href="Booklet%20-%20jQuery%20Plugin_files/booklet0.css" type="text/css" rel="stylesheet" media="screen, projection, tv">
<!-- required files for booklet -->
<script src="Booklet%20-%20jQuery%20Plugin_files/jquery00.js" type="text/javascript"></script>
<script src="Booklet%20-%20jQuery%20Plugin_files/jquery-u.js" type="text/javascript"></script>
<script src="Booklet%20-%20jQuery%20Plugin_files/jquery01.js" type="text/javascript"></script>
<script src="Booklet%20-%20jQuery%20Plugin_files/jquery02.js" type="text/javascript"></script>
<link href="Booklet%20-%20jQuery%20Plugin_files/jquery00.css" type="text/css" rel="stylesheet" media="screen, projection, tv">
<!-- basic initialization -->
<script type="text/javascript">
function mm() {
$('#mybook').booklet();
};
</script>
</head>
<body >
<div id="mybook">
<div>page 1 content<div>//If my page content was larger than page put rest of text to next page
<div>page 2 content<div>
<div>page 3 content<div>
.
.
.
<div>
</body>
</html>
我怎样才能做到这一点?