$(document).ready(function(){
$("a[href*='http://']:not([href*='"+location.hostname+"'])").attr("target","_blank");
$("a[target!='_blank'][target!='_top']").click(function(){
$("#actualcontent").load($(this).attr("href"));
window.location.hash=$(this).attr("href");
return false;
});
});
所以我有这个代码,以便我的链接加载在div actualcontent中。 但我宁愿使用dynamicdrive的ajax加载函数来加载内容,因为它似乎不像jQuery那样冻结页面。这可能吗?我可以在jQuery变量中使用常规函数吗?
说我的动态驱动器ajaxload函数被称为ajaxpage()?
难道我只是做
var url=$(this).attr("href");
ajaxpage(url);
?
我看不出为什么不。 – 2009-10-31 15:38:56