New Image on Each Page LOad

J

Jerome Ranch

Is there a way in FP2003 to have a certain layout cell display an
image at random from a folder of such images?
Thanks
Jerry
 
N

Nicholas Savalas - http://savalas.tv

Dear Jerry,
What, in effect, you're talking about is a banner rotator, and while
you may not want the size to be 468 x 60, like people usually do, it is
basically the same concept. Microsoft has created a component called
AdRotator that ships with their servers that will do exactly what you
want. Just change the height and width of the code in the example that
I'm going to recommend you visit, to whatever dimensions your page
requires. Remember, you are going to get some undesired results if all
the pictures are not of the same size. You can even have people go
places when they click on the pictures (or not, just replace the URL
with a #), and specify how often, by percent, you want any particular
picture to show up. To stick the resultant picture inside a cell, make
sure your code looks like this:

<td>
<%
set adrotator=Server.CreateObject("MSWC.AdRotator")
response.write(adrotator.GetAdvertisement("banner_ads.txt"))
%>
</td>

This example is as good as any:
http://www.codetoad.com/asp_banner_ad_rotator.asp
Good luck, Jerry.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top