Solved

random images on web

Posted on 2000-04-05
3
188 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

828 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