代码如下:
html
head
title超简单上下翻/title
script type="text/javascript" src="js/jquery.js"/script
/head
body
简单上下翻,函数
script type="text/javascript"
function UpDown(What) {
var aList = $("#tab a");
var oldnode = aList.get(0);
/*
*获取最后一个元素三种方法
*/
newnode = aList[aList.length - 1];
newnode = aList.get(aList.length - 1);
newnode = $("#tab a:last");
if (What == "up") return $(oldnode).before(newnode);
$(newnode).after(oldnode)
}
/script
div
a href='#' a /aa hre...
[ 查看全文 ]