日期:2014-05-18  浏览次数:20435 次

关于文字分页的问题?????
我用编辑器把文字,保存到数据库中.在方面显示时想分页了,不知道怎么写比好???

------解决方案--------------------
<div id= "div1 " runat= "server "> </div>
<input type= "button " id= "button2 " value= "pro " onclick= "windowonload() "> <input type= "button " id= "button1 " value= "next " onclick= "next(); ">
<script language= "javascript ">
var mark=document.getElementById( "div1 ").innerHTML;
windowonload();
function windowonload()
{
document.getElementById( "div1 ").innerHTML=mark.substring(0,5);
}
function next()
{
var div=document.getElementById( "div1 ");
div.innerHTML=mark.substring(5,mark.length);
}
</script>

cs里面给div1赋值
------解决方案--------------------
把数据保存在datatable里,每一次取你需要的长度