Solved

JavaScript driven image rotator

Posted on 2009-05-18
4
346 Views
Last Modified: 2012-05-07
How does the image rotator on this webpage work? http://www.coastlinerop.schoolloop.com

The images have names like "1224307720616/1235692177229_380x237" with no extension. The full path for that image would be: <<  http://www.coastlinerop.schoolloop.com/uimg/image/1224307720616/1235692177229_380x237  >> How does that work? All the images are in a table cell inside this div and class:  <div id="div_1235692552888" class="pics_1235692552888">,  and the div is referenced in the jQuery script above it.

If it's not too complicated an answer, how would I duplicate this sort of thing myself. I have access to a remote database on a Windows server via asp.net. What all would I need to do to emulate this sort of image rotator myself?

Thanks!
John
0
Comment
Question by:gabrielPennyback
  • 2
4 Comments
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 250 total points
Comment Utility
1. JAVA is not JavaScript so I fixed your title
2. they use JQuery - seems they use something called cycle
http://www.google.com/search?q=jquery+cycle+tutorial
http://www.google.com/search?q=jquery+cycle+plugin
3. http://www.coastlinerop.schoolloop.com/uimg/image/1224307720616/1235692177229_380x237
just means that they use .htaccess to rewrite the url, something like

http://www.coastlinerop.schoolloop.com/uimg.php?image=1224307720616/1235692177229&size=380x237

and have the php return the scaled image with image/jpeg mime header
0
 
LVL 18

Assisted Solution

by:wilq32
wilq32 earned 250 total points
Comment Utility
The easiest using jQuery is :

http://www.malsup.com/jquery/cycle/


Just look for "fade" effect - that is what you look for .
0
 
LVL 75

Expert Comment

by:Michel Plungjan
Comment Utility
Wilg: top link in the link I gave http://www.google.com/search?q=jquery+cycle+plugin
0
 
LVL 1

Author Closing Comment

by:gabrielPennyback
Comment Utility
Sorry for being gone so long. Thanks.

- John
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now