导航:首页 > 万维百科 > 网页设计五个分页

网页设计五个分页

发布时间:2021-03-17 18:43:21

1、。求一个成品的网页设计,带有超链接(四五个左右)。首页加几个分页,首页最好配有简单的文幕滚动

biyesheji_cn 有下载 右侧

2、网页制作-分页

把下列code保存成p_index.asp 100%工作

<%@LANGUAGE="VBScript" codepage="936"%>
<!--#include file="ubbcode.asp"-->
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Page-Exit" content="revealTrans(Duration=1.0,Transition=12)">
<script language=javascript>
var currentpos,timer;

function initialize()
{
timer=setInterval("scrollwindow()",90);
}
function sc(){
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos != document.body.scrollTop)
sc();
}
document.onmousedown=sc
document.ondblclick=initialize
</script>
<link href="skin_1.css" rel="stylesheet" type="text/css">
<title>DenReakun</title>
<link href="style.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FDFDFD" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<%
'**********************************************************

'**********************************************************
dim rs
dim sql
msg_per_page = 2
set rs = server.createobject("adodb.recordset")
sql = "select * from news where user = 'Procts' order by id desc"
rs.cursorlocation = 3

rs.pagesize = msg_per_page
rs.open sql,conn,0,1

if err.number<>0 then
response.write "Database Error:" & err.description
err.clear
else
if not (rs.eof and rs.bof) then
totalrec = RS.RecordCount
if rs.recordcount mod msg_per_page = 0 then
n = rs.recordcount\msg_per_page
else
n = rs.recordcount\msg_per_page+1
end if

currentpage = request("page")
If currentpage <> "" then
currentpage = cint(currentpage)
if currentpage < 1 then
currentpage = 1
end if
if err.number <> 0 then
err.clear
currentpage = 1
end if
else
currentpage = 1
End if
if currentpage*msg_per_page > totalrec and not((currentpage-1)*msg_per_page < totalrec)then
currentPage=1
end if
rs.absolutepage = currentpage 'absolutepage:

rowcount = rs.pagesize 'pagesize:
dim i
dim k
%>
<table width="306" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10"></td>
</tr>
</table>
<%do while not rs.eof and rowcount > 0%>
<table width="665" border="0" cellspacing="0" cellpadding="1">
<tr>
<td class="xndyk"><table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td> <img src="images/003.gif" width="9" height="9"> <%=rs("title")%></td>
</tr>
<tr>
<td height="1" background="images/heng-dian.gif"></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><%=UBBCode(rs("text"))%><br>
<div align="right"><font color="#999999"><%=rs("data")%></font></div> </td>
</tr>
</table></td>
</tr>
</table>
<table width="665" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="15"></td>
</tr>
</table>
<%
rowcount=rowcount-1
rs.MoveNext
loop
end if
end if
rs.close
set rs=nothing
%>

</table>
<table border="0" align=right>
<tr>
<td valign="middle" align=right>
<%call listPages()%>
</td>
</tr>
</table>
</body>
</html>
<%
sub listPages()
'if n <= 1 then exit sub
for i=0 to n\msg_per_page-1
for j=1 to msg_per_page
%>
<font size="2" color="#006600">
<a href="<%=request.ServerVariables("script_name")%>?page=<%=i*msg_per_page+j %>">
[<% =i*msg_per_page+j %>]</a></font>
<%
next
next
EndPage = n mod msg_per_page
for j=1 to EndPage
%>
<font size="2" color="#006600">
<a href="<%=request.ServerVariables("script_name")%>?page=<% =i*msg_per_page+j %>">
<%if (i*msg_per_page+j)=currentpage then%><b><%else%><%end if%>[<% =i*msg_per_page+j %>]</b></a></font>
<%next%>
<font color=black face="arial" >
<br>Current page:<font color=#FF000000><%=currentpage%>/<%=n%></font> Total log:<font color=#FF000000><%=totalrec%></font> piece
</font>Each Page:<font color=#FF000000>2</font><font face="arial" color="black"> </font>piece
<%end sub%>

==================
记得给分啊 !

3、请问谁有简易的网页模板,有五个分页的,一定要简单的,难的做不出来

网页给你发过去了,我无事时做的很简单,连PSD格式的都给你了,方便改动

4、求一个html的网页设计作品,内容不限,要至少5个网页页面

<

5、求一份网页设计作业,共五个网页

直接到网上下载建站系统来做了,例如:pageadmin和discua都不错、简单、方便、直接。

6、网页设计 五个图五段文字怎么安排

文字写图片上面,然后图片大的话,可以轮播,或者百叶窗那种也可以

7、需要一份网页设计的作品,要求一个主页五个分页,菜鸟级别的就好,QQ邮箱:[email protected]

已发

8、网页设计中如何实现分页的效果

用GridView空间,里面有自带的分页功能,将属性设置为true,然后在相应的事件里面写数据库的查询代码就可以了!
一、动态网页:这里有一段PHP代码,供参考,我这边运行成功:

1.显示内容部分
<?php
$page=$_GET["page"];
if($page=="")
{$page=1;}
if(is_numeric($page))
{
$page_size=30;
$query="select count(*) as total from solution order by id desc";
$result = mysql_db_query($dbn, $query);
$message_count=mysql_result($result,0,"total");
$page_count=ceil($message_count/$page_size);
$offset=($page-1)*$page_size;
$sql=mysql_db_query($dbn,"select * from solution order by id desc limit $offset,$page_size");
$row=mysql_fetch_object($sql);
if(!$row)
{
echo("No data!");
}
?>
<?php
do
{
?>
</p>
<p>+ <a href="<?php echo $row->pageurl; ?>.html" title="<?php echo $row->pagetitle; ?>"><?php echo $row->pagetitle; ?></a></p>
<?php
}while($row=mysql_fetch_object($sql));
?>
<?php
}
?>

2.分页部分
<?php
if($page!=1)
{
echo "<a href=index.php?page=1>First</a> ";
echo "<a href=index.php?page=".($page-1).">Previous</a> ";
}
if($page<$page_count)
{
echo "<a href=index.php?page=".($page+1).">Next</a> ";
echo "<a href=index.php?page=".$page_count.">End</a>";
}
?>
</span> <span> Current Page:<?php echo $page;?> / <?php echo $page_count;?></span>
<?php
mysql_free_result($sql);
?>

二、静态网页用js:
用JavaScript伪分页,实际上内容还是在同一个页面上。

<div id="page_1">第1页内容</div>
<div id="page_2">第2页内容</div>
<div id="page_3">第3页内容</div>
<div id="page_4">第4页内容</div>
<script type="text/javascript">//<![CDATA[
var curpage=document.hash.substr(1);
for (var i=1;i<=4;++i) {
document.getElementById('page_'+i).style.display=(i==curpage)?'':'none';
}
//]]></script>

然后用 page.htm#1 page.htm#2 page.htm#3 page.htm#4 来链接4页。

9、html如何制作分页

第一种方法,可以使用JS来实现网页的分页
第二种方法,结合后端语言来实现,如PHP等语言

与网页设计五个分页相关的知识