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에 콘텐츠를로드 할 때 슬라이더 (로열 슬라이더)가 작동하지 않습니다. 어떻게 로열 슬라이더를 얻을 수있는 코드를 수정할 수 있습니까? 메신저 및 사용자 정의 디자인 테마를 사용하여.
테스트를 거친 브라우저는 무엇입니까? 나는 그것이 여분의 쉼표 때문에 IE에서 실패 할 것으로 예상한다. –
오류 메시지가 있습니까? – Huangism
파이어 폭스, 사파리, 크롬에 잘 작동하는 아약스 내 문제는 아약스에 의해 호출 된 콘텐츠에서 로얄 플래시가 아닙니다. –