Solved

random images on web

Posted on 2000-04-05
3
181 Views
Last Modified: 2013-12-18
Does anyone know how to display random banner on the web?

I would like to display different banner (.gif file)on my site everyday(I will have about 20 graphics held in my database).  

Any help on this would be helpful.

I do not want to use javascript, only Domino.
0
Comment
Question by:BPatel
  • 2
3 Comments
 

Accepted Solution

by:
sam_clayton earned 50 total points
ID: 2689073
I would create a form that is used to define an advert.

Give it fields like;
URL (to link to)
Image URL
Short description.

Create a doc. based on this form for each advert.

Create a view of these forms.

Add a computed for display field called bannerad (or similar) tot he form of the page you want the advert on. Make it's value equal to itself.
Add Lotus Script to web-query-open of the page you want the advert on.
Get it to generate a random number in the range 1 to the no. of docs in the view.
Use the get nth doc to get the document containing the advert descriptions.
Use these details to build a string that represents the HTML of the banner ad.
Put this string in the computed for display field on the form.

Does this help?

cya,
Sam

0
 

Author Comment

by:BPatel
ID: 2690130
Thanks very much.  I will try this.
0
 

Author Comment

by:BPatel
ID: 2690140
Thanks.  I THINK THIS WILL WORK.  I WILL TRY IT AND LET YOU KNOW.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now