2
jQuery(document).ready(function($) {
var $mainContent = $("#main_class"),
siteUrl = "http://" + top.location.host.toString(),
url = '';
$(document).delegate("a[href*='/classes/']:not([href*=/wp-admin/]):not([href*=/wp-login.php]):not([href$=/feed/]):not([href$=/event-registration/])", "click", function() {
location.hash = this.pathname;
return false;
});
$(window).bind('hashchange', function(){
url = window.location.hash.substring(1);
if (!url) {
return;
}
url = url + " #main";
$mainContent.animate({opacity: "0.1"}).html('Please wait...').load(url, function() {
$mainContent.animate({opacity: "1"});
});
});
$(window).trigger('hashchange');
$('#slider').royalSlider({
imageAlignCenter:true,
imageScaleMode: "fill",
});
ajax內容工作熟練,但當我加載內容到ajax div滑塊(皇家滑塊)不起作用。我如何修改代碼來實現皇家滑塊。即時通訊使用wordpress和自定義設計的主題。
你測試過哪些瀏覽器?由於額外的逗號,我預計它會在IE中失敗。 –
任何錯誤消息? – Huangism
ajax在firefox,safari,chrome上運行良好我不關心IE我的問題是royalslider在ajax調用的內容中並不起作用。 –