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等語言