SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Slider

  1. #1
    SitePoint Wizard billy_111's Avatar
    Join Date
    Jul 2009
    Posts
    1,683
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Slider

    Hey,

    I have put together a slider menu on this page:

    http://www.freemanholland.com/cow/public_html/shop

    On the left, but i don't quite like the way it works.. Was thinking of using a nice jQuery slider.. Is there a slider out there or examples of which do the same?

    Also, when i click to go to a different page the slider returns back to normal again, so i would prefer it remains on the category the user has selected..

    Any examples or advice would be much appreciated..

    Thanks
    Software Engineer ASP, ASP.NET, VB, PHP

    Kind regards
    Billy

  2. #2
    SitePoint Evangelist TommiChi's Avatar
    Join Date
    Oct 2008
    Posts
    440
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you want a customized sliding effect, then you could use the .animate property (check out http://api.jquery.com), that you can use on any element in the page.

    to resolve your menu resetting problems, you have to options:
    1. Make an AJAX request and serve your response in the target area, so you never leave the page
    2. If you want to have a new page (for navigation history purposes I suppose....), then you could use a query string to determine the active category. For example:
    http://url?cat=men_clothhing
    You can then use this query string to display the correct category either in JS or in your back-end


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •