SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Jan 2007
    Posts
    967
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    newbie jquery question

    I'm trying to figure out how to make this gallery work with jquery rather than direct event handlers. I've been reading up on it, but I'm still not quite sure where to begin.

    http://beta.piripiribbq.com/Gallery

    What I'd like it to do is replace the main image #central with the source of the rolled over image below in the #thumbs div. If this can be done easily with a fade-in as well that would be a nice bonus.

    Note: I used the large image scaled down with html as the thumb. It seems to render fine and gets around needing to preload. It all dynamically generated from a database so why not save a step?

    Thanks!

    E

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,705
    Mentioned
    102 Post(s)
    Tagged
    4 Thread(s)
    jQuery cycle has the solution for you.

    Pause on Hover Demo

    I suspect that you'll want the same solution, but without the auto-advance?
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


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
  •