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!

Timed AdRotator

Status
Not open for further replies.

Sprowler

IS-IT--Management
Joined
Sep 30, 2002
Messages
102
Location
GB
Hi,

Im using the AdRotator class and want the images to change within timed intervals when the page is viewed.

The basic AdRotator allows the image to be changed at random when a user visits the site, which is fine, i would like the image to change to a different image every 3-5 seconds once the page is viewed.

Is this possible in ASP.NET?

Thanks
 
Yes it is, although you'll have to implement a javascript function to change the image if you want to avoid a postback to the server everytime the image changes.

For the best solution, ask the JavaScript forum (forum216) how to rotate an image every x seconds.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Thanks,

I previously created a JavaScript file that changes the image, but couldnt embed it into my asp file. Can you make both asp and javascripts run on the same page, if so how?
 
Yes you can. An ASP.NET page simply omits HTML so to include a javascript function you can simply include it in the page as you would with a standard HTML page.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top