Hi there,
I am trying to develop a Slider for my photo gallary and its not working the way i am wanting it i am recieving this error
i have downloaded jquery from the jquery website and i am recieve this error
jquery.ui.mouse.js:13Uncaught ReferenceError: jQuery is not defined
jquery.ui.slider.js:16Uncaught ReferenceError: jQuery is not defined
test.html:179Uncaught ReferenceError: $ is not defined
Now this is my code i am using
<script src="jquery-1.2.6.js" type="text/javascript" charset="utf-8"></script>
<script src="jquery-ui-full-1.5.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="jquery.ui.mouse.js" type="text/javascript"></script>
<script src="jquery.ui.slider.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
window.onload = function () {
var container = $('div.sliderGallery');
var ul = $('ul', container);
var itemsWidth = ul.innerWidth() - container.outerWidth();
$('.slider', container).slider({
min: 0,
max: itemsWidth,
handle: '.handle',
stop: function (event, ui) {
ul.animate({'left' : ui.value * -1}, 500);
},
slide: function (event, ui) {
ul.css('left', ui.value * -1);
}
});
};
</script>
<div class="sliderGallery">
<ul class="items">
<li>Item one</li>
<li>Item two</li>
<li>Item three, etc...</li>
</ul>
<div class="slider">
<!-- the handler to action the slide -->
<div class="handle"></div>
<!-- labels appear against the slider, as pointers to the user -->
<span class="slider-lb1">slider label 1</span>
<span class="slider-lb2">slider label 2</span>
<span class="slider-lb3">slider label 3</span>
</div>
</div>
Why do i get those errors? what am i doing wrong?
Can anyone help me out here?
Thanks,William