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:

Use WebCat to search files in a folder like a search engine? (2001) Running _every_ page through WebCat ? (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) Emailer setup (1997) [WebDNA] Privat IP website behind a public IP website (2014) Inventory Adjustment (2000) Adding Shipping Costs based on percent of subtotal (1997) A multi-processor savvy WebCatalog? (1997) I'm new be kind (1997) Re: (2000) Page Counters? (1997) gateway application timeouts (1998) Adding Multiple files to a cart at once (1998) OS X Problem... (2000) Emailer (1997) question: Eudora 3.1.1 (1997) Another bug to squash (WebCat2b13 Mac .acgi) (1997) [WebDNA] WebDNA on LiveCD ... (2008) shipcost (1997) Bad Cookie / Internet Option / Internet Explorer (2004)