[ Поиск ] - [ Пользователи ] - [ Календарь ]
Полная Версия: uncaught typeerror object has no method
Страницы: 1, 2
Oggy
Проблема такова. Неработает слайдер. В Хроме, косоль пишет
Uncaught TypeError: Cannot call method 'create' of undefined

Source роздел говорит:

uncaught typeerror object has no method 'prettyPhoto'.

вот скрипт

<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("a[data-gal^='prettyPhoto']").prettyPhoto({
animationSpeed: 'normal',
padding: 40,
opacity: 0.35,
showTitle: true,
allowresize: true,
counter_separator_label: '/',
theme: 'facebook'
});
});


подскажыте пожалуйста как ето выправить ?
bestxp
а что не ясно, ничего не возвращает твоё выражение, находит ли что либо оно
Это как вариант
Oggy
Цитата (bestxp @ 2.03.2013 - 14:47)
находит ли что либо оно
Это как вариант

повторите пожалуйста
killer8080
Oggy
prettyPhoto это плагин jQuery? Он подключен?
Oggy
Цитата (killer8080 @ 2.03.2013 - 14:55)
Oggy
prettyPhoto это плагин jQuery? Он подключен?

да
killer8080
Цитата (Oggy @ 2.03.2013 - 17:01)
да

похоже что то напортачил в подключении. Покажи код из <head>
Oggy
Цитата (killer8080 @ 2.03.2013 - 15:03)
Цитата (Oggy @ 2.03.2013 - 17:01)
да

похоже что то напортачил в подключении. Покажи код из <head>

<link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700' rel='stylesheet' type='text/css' />
<!-- <
link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css' /> -->
<
link href='http://fonts.googleapis.com/css?family=Lobster&subset=latin,cyrillic,cyrillic-ext,lat in-ext' rel='stylesheet' type='text/css' />

<
script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<
script type="text/javascript" src="js/jquery.prettyPhoto.js"></script>
<
script type="text/javascript" src="js/scripts.js"></script>
<
script type="text/javascript" src="js/jquery.backgroundPosition.js"></script>
<
script type="text/javascript">
jQuery(document).ready(function(){
jQuery("a[data-gal^='prettyPhoto']").prettyPhoto({
animationSpeed: 'normal',
padding: 40,
opacity: 0.35,
showTitle: true,
allowresize: true,
counter_separator_label: '/',
theme: 'facebook'
});
});

jQuery(document).ready(function(){
a = Math.max.apply(Math, jQuery('.products-grid li.item, .product-view .box-up-sell .products-grid td').map(function(){
return jQuery(this).height()
}).get());
jQuery('.category-products .products-grid li.item').css({'height':a});
jQuery('.product-view .box-up-sell .products-grid td').css({'height':a});
});


jQuery(document).ready(function() {
jQuery('.slider-link').hover(
function(){jQuery(this).find('span').stop().animate({left: 0}, 200)},
function(){jQuery(this).find('span').stop().animate({left: '-200px'}, 200)}
)
jQuery('.banner-1').hover(
function(){jQuery(this).stop().animate({width: 420, backgroundPosition:'0 0'}, 200).parent('.slider-wrapper').find('.banner-2').stop().animate({width: 250}, 200)},
function(){jQuery(this).stop().animate({width: 250, backgroundPosition:'-105px 0'}, 200).parent('.slider-wrapper').find('.banner-2').stop().animate({width: 420}, 200)}
)
jQuery('.banner-3').hover(
function(){jQuery(this).stop().animate({width: 420, backgroundPosition:'0 0'}, 200).parent('.slider-wrapper').find('.banner-2').stop().animate({width: 250}, 200)},
function(){jQuery(this).stop().animate({width: 250, backgroundPosition:'-49px 0'}, 200).parent('.slider-wrapper').find('.banner-2').stop().animate({width: 420}, 200)}
)
});


</
script>
Быстрый ответ:

 Графические смайлики |  Показывать подпись
Здесь расположена полная версия этой страницы.
Invision Power Board © 2001-2024 Invision Power Services, Inc.