homepage Welcome to WebmasterWorld Guest from 54.145.182.50
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
slideshow jquery
dukelips

5+ Year Member



 
Msg#: 4578106 posted 7:53 am on May 27, 2013 (gmt 0)

is it too difficult to create slideshow in jquery as most of the websites use plugins created by others

 

Readie

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4578106 posted 3:43 pm on May 31, 2013 (gmt 0)

I've used plugins and written my own numerous times.

The advantage of using a third party plugin is it takes less of your time.

The advantage of writing your own is you can tailor it specifically to your own needs. The same logic applies for pretty much any JS plugin.

As far as writing your own slideshow - with a working knowledge of the overflow and position CSS attributes, it's pretty simple.

For example, to slide an image in from the left, you would place it in a fixed height/width div with overflow:hidden and position:relative.

The image itself would be position:absolute, and it's left would be set to negative [image width].

You could then call jQuery animate on it like so:

element.animate({
'left': 0
}, 1000);

dukelips

5+ Year Member



 
Msg#: 4578106 posted 12:54 pm on Jun 1, 2013 (gmt 0)

the option using next, end as well as eq is seen on the slideshows. what are the options that can be used to traverse the dom

Readie

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4578106 posted 6:32 pm on Jul 22, 2013 (gmt 0)

jQuery has some rather good docs...

[api.jquery.com...]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved