Re: random images

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 14559
interpreted = N
texte = >I'm extremly new to web catalog, and am currently constructing my first >templates, I need to be able to imput images randomly.Look at the GeneralStore example and notice that the banner ads rotate randomly on each page in the store. The random banners in that example are displayed anywhere you put [include RandomAd.inc] in a template (include is sort of like a macro in NetCloak). If you open RandomAd.inc, you'll see that it searches a database and randomly returns the results of the search. You can put HTML into the database file that stores the list of banner ads. If you go to the main WebCatalog welcome page and enter the GeneralStore Admin link, you'll see an HTML-based interface for adding/deleting the text in the banner ads database. Or you can just open the database in a text editor.The advantage to this technique compared to NetCloak is that you can easily put 100,000 ads in, and your HTML won't have 100,000 show/hide commands in it.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Random Images (Nicolas Verhaeghe 2000)
  2. Re: Random Images (Nicolas Verhaeghe 2000)
  3. Random Images (Gregory Scott 2000)
  4. Re: random images (Raymond Hatch 1997)
  5. Re: random images (Grant Hulbert 1997)
  6. random images (Raymond Hatch 1997)
>I'm extremly new to web catalog, and am currently constructing my first >templates, I need to be able to imput images randomly.Look at the GeneralStore example and notice that the banner ads rotate randomly on each page in the store. The random banners in that example are displayed anywhere you put [include RandomAd.inc] in a template (include is sort of like a macro in NetCloak). If you open RandomAd.inc, you'll see that it searches a database and randomly returns the results of the search. You can put HTML into the database file that stores the list of banner ads. If you go to the main WebCatalog welcome page and enter the GeneralStore Admin link, you'll see an HTML-based interface for adding/deleting the text in the banner ads database. Or you can just open the database in a text editor.The advantage to this technique compared to NetCloak is that you can easily put 100,000 ads in, and your HTML won't have 100,000 show/hide commands in it.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Grant Hulbert

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:

Limiting user access to .tmpl files (1997) [isfile] ? (1997) Multiple catalog databases and showcart (1997) Re:Emailer and encryption (1997) Help name our technology! (1997) WebCat2b12 CGI Mac - [shownext] problem (1997) Sku numbers (1997) Re[2]: Pull Down Search (2000) cart info (1998) simple answer? [hideif] (1997) Calculating multiple shipping... (1997) [WebDNA] WebDNA 8.6 announced - New features (2018) Payments -> Bank Accounts (2005) WebCatalog 4.0.1 has been released! (2000) [BULK] [WebDNA] Authorize.net SIM, Server Integration Method (2011) Who is doing sign-ups-got it (1998) UPDATE PROBLEM (1997) Multiple Newcarts (1996) TemplateCacheSize preference! (1998) Multiple cart additions (1997)