复制代码代码如下:
<٪@ page language = "java" contentType = "text/html ؛ charset = utf-8"
pageencoding = "utf-8" ٪>
<٪
string path = request.getContextPath () ؛
String BasePath = request.getScheme () + ": //"
+ request.getServerName () + ":" + request.getServerPort ()
+ path + "/" ؛
String GroupId = request.getParameter ("GroupId") ؛
٪>
<! doctype html public "-// w3c // dtd html 4.01 Transitional // en" "http://www.w3.org/tr/html4/loose.dtd">
<html>
<head>
<meta http-equiv = "content-type" content = "text/html ؛ charset = utf-8">
<script type = "text/javaScript" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"> </script>
<meta content = "width = width device ، sciale = 1.0 ، maximum-scale = 1.0 ، ster-scalable = no" name = "viewport">
<title> 宝宝排行榜 </title>
<type type = "text/css">
جسم {
محاذاة النص: المركز ؛
الهامش: 0 Auto ؛
الحشو: 0 ؛
الخلفية: #ffefe5 ؛
العرض: 100 ٪ ؛
}
ج: الرابط {
تدمير النص: لا شيء ؛
}
#static {
الهامش: 0 Auto ؛
محاذاة النص: اليسار ؛
}
IMG {
العرض: 100 ٪ ؛
}
#رئيسي {
الخلفية: url ("../ pic/bj_12.jpg") REFENT-X ؛
حشو أعلى: 5 بكسل ؛
}
#main span {
حجم الخط: 1.5.
اللون: #2F0075 ؛
الهامش اليساري: 40 بكسل ؛
}
#قاع {
العرض: 100 ٪ ؛
الهامش: 0 ؛
الحشو: 0 ؛
حجم الخط: 1EM ؛
}
#bottom ul li {
العرض: 48 ٪ ؛
تعويم: اليسار.
الهامش اليساري: -8 ٪ ؛
يمين الهامش: 10 ٪ ؛
نوع القائمة: لا شيء ؛
}
.sp {
الهامش: -50px ؛
الحدود الحدودية: 8px ؛
}
</style>
<script type = "text/javaScript">
$ (function () {
// 动态加载宝贝排行信息
وظيفة loadsecondsort () {
$ .ajax ({
النوع: "بعد" ،
البيانات: "groupID ="+$ ("#groupid"). val () ،
url:
النجاح: الوظيفة (البيانات) {
var list = data.list ؛
var row = "" ؛
$ ("ul"). فارغة () ؛
if (list! = null && list.length! = 0) {
لـ (var i = 0 ؛ i <list.length ؛ i ++) {
row = "<li> <a href =/" bao_x.jsp؟ id = "+list [i] .id+"/"> <img src =/" ../ pic/"+list [i]
"style =/" background-color: #ffb7cd ؛ الهامش: 10 بكسل ؛ الارتفاع: 30 بكسل/">"+
"<img src =/" ../ pic/zan.png/"style =/" width: 22px ؛ الهامش اليساري: 10px ؛ الهامش أعلى: 5px ؛/"class =/" supe/">"+
"<span style =/" الهامش: 5px ؛ اللون: #8a7da9 ؛ تعويم: صحيح. الهامش اليمين: 10px ؛/"> 已 <span>"+قائمة [i] .vote+"</span> 票"+
"</span> </viv> </li>" ؛
$ (row) .Appendto ($ ("ul")) ؛
}
}
}
}) ؛
}
$ (".
var id = $ (this) .closest ("li"). find ("#id"). val () ؛
$ .post ("<٪ = basepath ٪> updateBobyRank.action" ، "id =" + id ،
دالة (البيانات) {
if (data.msg == null) {
if (data.success == true) {
loadsecondsort () ؛
}
}آخر {
التنبيه (data.msg) ؛
}
}) ؛
}) ؛
window.onload = loadsecondsort () ؛
}) ؛
</script>
</head>
<body>
<type type = "hidden" id = "groupID" value = "<٪ = GroupId ٪>">
<div id = "static">
<img src = "../ pic/top10.jpg"> <a href = "../ jsp/index.jsp"> <img
src = "../ pic/fan.png"> </a>
<div id = "main">
<span> 近期排名: </span>
</div>
<div id = "bottom">
<ul>
</ul>
</div>
</div>
</body>
</html>