If statements jquery slider - jQuery Slider – Need some help?

24th of October 2013 0

jQuery Slider – Need some help?

Hi,

I’d prefer to use my own jquery slider on my website however I cannot figure out how add the navigation, prev and next, buttons. This is my code so far, how would i implement those buttons?

function Slider() {
$ (“#sliderimgs #1″).show(“fade”, 500);
$ (“#slider .sliderarrow”).show(“fade”, 500);
$ (“#sliderimgs #1″).delay(5500).hide(“slide”, {direction: ‘left’}, 500)
$ (“#slider .sliderarrow”).delay(5500).hide(“fade”, 300)

var sc = $ (“#sliderimgs img”).size();
var count = 2;

setInterval(function() {
$ (“#sliderimgs #”+count).show(“slide”, {direction: ‘right’}, 500)
$ (“#slider .sliderarrow”).show(“fade”, 300);
$ (“#sliderimgs #”+count).delay(5500).hide(“slide”, {direction: ‘left’}, 500)
$ (“#slider .sliderarrow”).delay(5500).hide(“fade”, 300)

if(count == sc) {
count=1;
} else {
count = count + 1;
}
}, 6500);
}

Best answer:

Answer by ❂ℂɑгƞɩⱴɑȴ ℕɩჵɧȶ Հѳƞε❂ ✰Ҏᴀʀჺøᴀ Ꭲᴇмᴀ ‖søʟᴀ✰
Using Jquery sliders: http://paulmason.name/item/simple-jquery-carousel-slider-tutorial

What do you think? Answer below!

Share it!

Was it good for you to?

Sponsors

Support for the site!

No sponsors at the moment.



Your opinion matters. Add it below.


Tip: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Recent comments

Categories



Copyright jqueryui.info since 2010. All rights reserved. Design and the Absolute Theme by Tommie Hansen.