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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rotating Include Files/ Is it possible with Javascript/ASP 3

Status
Not open for further replies.

Tread42

MIS
Feb 5, 2002
151
US
I have a main page that is composed of several include files. I want to rotate an ad that is composed in a table dynamiclly on each load. Very similar to a picture rotator, but this would call the include file, which contains this ad's table. So for instance: One time the page loads with this code in the body: <!-- #include virtual=&quot;/03_includes/ads1.asp&quot; -->Then next time it might be ad2.asp through how ever many ads are currently running. I can't seem to get this to work.

Anyone out there have any ideas or faced similar challenges. Maybe the problem isn't that this won't work, but that I'm not seeing a better way to do the ASP code from scratch. The files ad1.asp contain nothing more than the raw table and images for the ads. (Each ad is sliced into several sections and links to unique places.)



Regards,
Tread42
 
I just went through the same &quot;process&quot; not six months ago ... these forums rock when you have a question which, after receiving some answers, seems really simple ... of course, hindsight's 20/20 as they say ... it didn't seem so simple until I found the answer when I had the question ....

As far as responders in these forums, this is the only forum that I've found on the Internet in which the responders actually give you practical answers instead of pointing you to a billion page MS bulletin ....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top