Click here to Skip to main content
16,017,944 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Suppose that I have 20 pictures and database in access .Now what I want is coding
which fetch these 20 pictures one by one and the changing of these pictures should be automatically but I also want < (previous button) > (next button) so that user can also control these ads to see And when user click on it they will automatically come on advertiser's web page .

Another thing ,I also want coding which I can distribute to other site owner so that they can place it in their site to see the same ad rotator which is on my site.When picture 1 is displayed on my site then same picture is displayed on others site owner.
Posted

1 solution

You could write a service that pulls these from the database, and on the client side you could call a javascript setTimeout() function that would cause a method to trigger and make an AJAX call to the service to pull the next add.

The timeout function would also then call reset the timeout so it fires again in another 30 seconds or whatever. The next/previous buttons should manually trigger the AJAX call and also reset the timeout.

Should be relatively straight forward, so there are somethings to think about and go do some research on.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900