Re: two unique banners on one page

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13373
interpreted = N
texte = >>>I recall (Grant I think) put some webDNA up that would allow for a search >>>to return two unique banners. >> >>I think the simplest way to handle this is to have two separate databases. > I did put up some WebDNA once, but it was awfully complex.>I tried using two databases with random sorts and the problem I have is >that the could always generates the same pair of ads.Hi Daniel,I think Grant meant putting half the banners in one db and the rest in the other db, so the same two could never appear on the same page. But I think there's a better way ...>Is there any way to make both ads truly random?Remember that Random Number generator I wrote? That code will never choose the same two records in the database. Right now, it's set to choose ten (10) unique random numbers, but it could be used to choose only two - or three - or as many unique banners as you want to show on the page ... :)Sincerely, Ken Grome WebDNA Solutions http://www.hui.net/dna/webdna.html Associated Messages, from the most recent to the oldest:

    
  1. Re: two unique banners on one page (Kenneth Grome 1997)
  2. Re: two unique banners on one page (Grant Hulbert 1997)
  3. Re: two unique banners on one page (Kenneth Grome 1997)
  4. Re: two unique banners on one page (Grant Hulbert 1997)
  5. Re: two unique banners on one page (Olin 1997)
  6. Re: two unique banners on one page (Grant Hulbert 1997)
  7. Re: two unique banners on one page (Olin 1997)
  8. Re: two unique banners on one page (Daniel Cameron 1997)
  9. Re: two unique banners on one page (Daniel Cameron 1997)
  10. two unique banners on one page (Olin 1997)
>>>I recall (Grant I think) put some webDNA up that would allow for a search >>>to return two unique banners. >> >>I think the simplest way to handle this is to have two separate databases. > I did put up some WebDNA once, but it was awfully complex.>I tried using two databases with random sorts and the problem I have is >that the could always generates the same pair of ads.Hi Daniel,I think Grant meant putting half the banners in one db and the rest in the other db, so the same two could never appear on the same page. But I think there's a better way ...>Is there any way to make both ads truly random?Remember that Random Number generator I wrote? That code will never choose the same two records in the database. Right now, it's set to choose ten (10) unique random numbers, but it could be used to choose only two - or three - or as many unique banners as you want to show on the page ... :)Sincerely, Ken Grome WebDNA Solutions http://www.hui.net/dna/webdna.html Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Field name-subcategory (1997) Bug? (1997) [searchString] (1997) [WebDNA] WebDNA Roll Call (2013) & not allowed in db by definition? (1999) Price and Formula.db (2002) The beginning (1997) Bug Report, maybe (1997) [WebDNA] Help with STMP Setup using Authentication with Google (2016) Problem using # in my field names ... (1998) # fields limited? (1997) Exclude by date - multiple (1997) Netscape (2002) Formulas.db + Users.db (1997) WebDNA 4.5.1 Now Available (2003) WebCat2b12 - nesting [tags] (1997) Dumb Question about Docs (1997) Sorting by date (1997) form data submission gets truncated (1997) Trouble with formula.db (1997)