아직 jquery에 익숙하지 않아 조금 도움이됩니다 .-) 이 코드는 Chrome에서 오프라인 일 때 작동합니다. IE9 또는 Firefox가 작동하지 않습니다. 그래서 이 사이트에 업로드되었으며 이제는 Chrome에서도 작동하지 않습니다.jquery는 Chrome에서만 오프라인으로 작동합니다.
파이어 폭스와 IE에서 "이벤트가 정의되지 않았습니다"라는 오류 메시지가 표시됩니다. 8 행은 -> event.preventDefault();
무엇이 될 수 있습니까? 잘못된 링크? 는 HTML에서 그들은 같이 첨가된다
$('.hidden_nav ul li a').click(function(event){
event.preventDefault();
그것은 함수 (이벤트)이다 :
문제는이 라인이 문제를 해결 해결된다. 그리고 비어있는 기능을 떠난() 모두
파일이 제대로 jQuery 라이브러리를로드하는 것을$(document).ready(function(){
//Get size of docuement and apply to div grid
var height = $(document).height();
$('.theGrid').css('height',height);
// Slide Down hidden Content
$('.hidden_nav li a').click(function(){
event.preventDefault();
var selected = $(this).text().toLowerCase();
var thisone = $('#'+ selected);
$('.hidden_content').slideDown(200);
thisone.slideDown(200);
thisone.addClass('online')
$('.bubble').fadeIn(100).delay(2000).hide(300);
});
$('.close_btn').click(function(){
$('.hidden_content').slideUp(200);
$('.online').hide().removeClass('.online');
$('.bubble').hide();
});
//Design Process // a few $ animations
$('.step_img').mouseover(function(){
var sel = $(this).next('h4').text().toLowerCase();
thisone = $('#' + sel);
thisone.children('p').slideDown(100);
});
$('.step_img').mouseout(function(){
var sel = $(this).next('h4').text().toLowerCase();
thisone = $('#' + sel);
thisone.children('p').delay(1000).slideUp(400);
});
// Slider (Nivo Slider Plugin) effects
$('.slider').nivoSlider({
effect:'random',
startSlide:2,
directionNav: true,
pauseOnHover: true,
pauseTime: 6000,
});
});
콘솔에 오류가 있습니까? –
파이어 폭스에서만, 이벤트가 정의되지 않았습니다. 한 번 온라인, 크롬 및 firefoy : Uncaught TypeError : 객체 [object window]의 속성 '$'이 (가) 함수가 아닙니다. – Skooz
@Skooz - 어떤 라인이 가리키는 오류입니까? ? – JasCav