+ Reply to Thread
Results 1 to 4 of 4

Thread: Scrolling / Changing Photo on site using AJAX?

  1. #1
    aka RF; RadioactiveFrog grae.uk will become famous soon enough grae.uk's Avatar
    Join Date
    Oct 2008
    Posts
    211
    Rep Power
    4

    Scrolling / Changing Photo on site using AJAX?

    Hi All,
    I have been thinking that one of my sites has a static image and it would be really good to be able to rotate through a folder of them...I initially thought Flash, but then installed the 'Featured Posts' script on my site. And there you will see that it 'drags' one Feature Post off and replaces with another and I was hoping this could be done with images too!

    Any guidance and where to start would be appreciated, I am not a AJAX coder by any stretch of the imagination! But willing to try!

    Cheers,

    Graham.
    “There are two theories to argueing with women. Neither of them work! ” - Unknown

  2. #2
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    You could load an array of image paths and then use a JavaScript timer to trigger the change of src for the display image to a new one from the array. If dealing with a lot of images, you could load the first 10 into an array, then after you loop through those, call an AJAX function to retrieve the next ten and repeat that process.
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  3. #3
    aka RF; RadioactiveFrog grae.uk will become famous soon enough grae.uk's Avatar
    Join Date
    Oct 2008
    Posts
    211
    Rep Power
    4

    Quote Originally Posted by jmurrayhead View Post
    You could load an array of image paths and then use a JavaScript timer to trigger the change of src for the display image to a new one from the array. If dealing with a lot of images, you could load the first 10 into an array, then after you loop through those, call an AJAX function to retrieve the next ten and repeat that process.
    Sounds like a good starting point! Will that scroll them off to the side though or just replace the one that is there?
    “There are two theories to argueing with women. Neither of them work! ” - Unknown

  4. #4
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    That would just replace what was there...you could check over at dynamicdrive.com for some type of scroll script, though.
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


+ Reply to Thread

Similar Threads

  1. changing Images from ASP.Net
    By noFriends in forum .NET Development
    Replies: 15
    Last Post: June 10th, 2009, 10:55 AM
  2. Changing Forms Authentication TimeOut on Page
    By richyrich in forum .NET Development
    Replies: 8
    Last Post: November 27th, 2008, 11:49 AM
  3. Refresh a page without changing any value
    By PhloooooIsFlo in forum JavaScript Programming
    Replies: 14
    Last Post: November 12th, 2008, 05:22 PM
  4. .Net And Ajax
    By smithcarvo in forum .NET Development
    Replies: 2
    Last Post: August 20th, 2008, 08:50 AM

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

SEO by vBSEO