Solved

JavaScript driven image rotator

Posted on 2009-05-18
4
350 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
ID: 24421771
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:Pawel Witkowski
Pawel Witkowski earned 250 total points
ID: 24421903
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
ID: 24422380
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
ID: 31582826
Sorry for being gone so long. Thanks.

- John
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Don't understand jquery promises 6 37
Check if Object property exists? 3 19
Objects on Same Line 2 18
replace all occurrences within a string 8 17
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

895 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

11 Experts available now in Live!

Get 1:1 Help Now