wangcnc2005
中级会员
 
UID 79276
精华
0
积分 311
帖子 219
金钱 311 喜悦币
威望 0
人脉 0
阅读权限 30
注册 2006-8-30
状态 离线
|
[推荐阅读] FAB音像集团诚聘PHP程序员(北京)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>翻页</title>
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>
<body>
<form name="form1" id="form1">
<select name="menu1" onchange="MM_jumpMenu('parent',this,0)">
<?
$allpagenum=10; //是根据情况记录算出来的哟..
$currentpage=$_GET['page'];
for($page=1;$page<=$allpagenum;$page++)
{
if($page==$currentpage)
{
$temp="selected=\"selected\"";
}
else
{
$temp="";
}
?>
<option value="list.php?page=<? echo $page?>" <? echo $temp?>>第<? echo $page?>页</option>
<?
}
?>
</select>
</form>
</body>
</html>
|  ASP/PHP/JSP/WAP. |
|