javascript,html5,css3,jquery-mobile,unslider
Ok, I kept trying this until I got it working. First, I had to add the call into the pageshow event: $(document).delegate("#firstPage", "pageshow", function () { $('.banner').unslider(); }); Then, I had to add some extra css for the li elements appear: .banner { position: relative; overflow: auto; margin: 0; padding:...
You are using position:absolute for the dots, to have them properly positioned in its parent and not the body of the page, you will need to give the slider container, which currently has an id of 'slider', a relative positioning. #slider { position: relative; } This will contain the absolute...
In your CSS code: .banner li { list-style: none; /* Lose the dot */ margin:0px; padding:0px; } Should be: .banner ul { list-style: none; /* Lose the dot */ margin:0; padding:0; } The CSS style list-style is a styled made for ul elements. That is why your slider was off...
When jQuery's data is used with two arguements, a key and a value, it stores the value under the given key in an internal object that jQuery keeps track of. When doing this, jQuery returns the collection, so it can be chained again var me = $('#element'); // a DOM...
javascript,jquery,html,unslider
Try removing your initial declaration and just use the 2nd. Remove: var unslider = $('.newbanner').unslider(); Change 2nd to: var unslider = $('.newbanner').unslider({ speed : 100, delay : 400000, dots : false, arrows : true, keys : true, }); I read on their github that issues, with speed and delay,...