Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Swapping Images

Status
Not open for further replies.

HighTower328

Programmer
Aug 22, 2006
6
US
I need a script that can swap images at set intervals. The images are in a datebase, so a query is needed to pull them from the source.

Can someone help with this? Thanks.
 
What have you got coded so far?

-kaht

Looking for a puppy?

silky-icon-left.gif
[small]Silky Terriers are small, relatively odorless dogs that shed no fur and make great indoor pets.[/small]
silky-icon-right.gif
 
At this point, I have the page layout the way it needs to be, and know where the script has to be placed to work properly.

I started out trying to use the AdRotator in ASP.Net, but it only switches images when the page is refreshed. I need something that will change the images every 5 to 10 seconds.

I asked about it on the ASP.Net Forum here, and was told to look into javascript. So, here I am.
 
So you have no javascript coded so far?

You'll want to look into AJAX - this allows you to make server side calls w/o refreshing the page thus allowing you to pull your images. Use google to find info on AJAX - it's all over the place now.

After you've got that figured out, use the javascript command setInterval to get the image to swap at a defined interval.

Once you've whipped up something, post your code back here if you're still having problems.

-kaht

Looking for a puppy?

silky-icon-left.gif
[small]Silky Terriers are small, relatively odorless dogs that shed no fur and make great indoor pets.[/small]
silky-icon-right.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top