Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

random images on web

Posted on 2000-04-05
3
Medium Priority
?
201 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Accepted Solution

by:
sam_clayton earned 200 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

715 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