if(($(this).index()-6)%6==0){
$(“#contul ul”).append(“<div class=’clear’></div>”);
}
});
});
},
error: function(){
alert(“对不起,数据获取失败,请F5刷新页面重新尝试如果问题仍然存在请联系网站管理员解决。”);
}
});
// });
}
//获取参数
function getParmeter(){
getParme=getQueryString(urlParem,’#javascript=tagCode(“‘,”,'”)’);
checkCode(getParme);
}
//getParmeter();
//点击触发
$(“#top span:gt(0)”).click(function(){
$(“.quick-alert”).remove();
});
//初始化
$.history.init(function(url) {
//load(url == “” ? “1” : url);
if(url.length>0){
getParme=getQueryString(url,’javascript=tagCode(“‘,”,'”)’);
if (getParme!=null){
getParme=getParme.toUpperCase();
checkCode(getParme);
}
}
else{
setDefaultPage();
}
});
//页面上其他操作
var getParme;
//function getHash(){
//var curHash = location.hash;
//alert(curHash);
//}
var urlParem;
urlParem=document.location.href;
var topHtml;
var topHtmlLink=””;
var $_objTop;
$_objTop=$(“#top”)
topHtml=$_objTop.html();
for(var i=65;i <91;i++)
{
topHtmlLink+=”<span><a href=’#javascript=tagCode(””+(String.fromCharCode(i+32))+””)’>”+String.fromCharCode(i)+”</a></span>”;
}
$_objTop.html(topHtml+topHtmlLink);
jquery.history.js插件 Demos
Some demos are available here and included in the repository.
And this site itself is built on the plugin:
(function($){
var origContent = “”;
function loadContent(hash) {
if(hash != “”) {
if(origContent == “”) {
origContent = $(‘#content’).html();
}
$(‘#content’).load(hash +”.html”,
function(){ prettyPrint(); });
} else if(origContent != “”) {
$(‘#content’).html(origContent);
}
}
$(document).ready(function() {
$.history.init(loadContent);
$(‘#navigation a’).click(function(e) {
var url = $(this).attr(‘href’);
url = url.replace(/^.*#/, ”);
$.history.load(url);
return false;
});
});
})(jQuery);










