Re: Random Images
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 29753
interpreted = N
texte = > Hello everyone. Here's another question for the list. Is there a way to> have WebCat load images randomly every time a user visits the site?Say, you have 100 images from ImageRandom00.gif to ImageRandom99.gif:
You can divide the [random] to let it fit the interval that you want.That works if all your pictures are the same size (or somewhat) and are all.gif or .jpgYou can also put all the picture in a folder, do a listfile a first time inorder to know how many pictures are there (only put pictures in thisfolder).This maximum value is equivalent to the last [index] of the list.Then pick a value at random, redo a listfile and when the [index] equalsyour value, show the picture:
Or prepare a database with the name of the pictures, a field for the index,pick at random and lookup the name according to this index.-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Associated Messages, from the most recent to the oldest:
> Hello everyone. Here's another question for the list. Is there a way to> have WebCat load images randomly every time a user visits the site?Say, you have 100 images from ImageRandom00.gif to ImageRandom99.gif:[random].gif>You can divide the [random] to let it fit the interval that you want.That works if all your pictures are the same size (or somewhat) and are all.gif or .jpgYou can also put all the picture in a folder, do a listfile a first time inorder to know how many pictures are there (only put pictures in thisfolder).This maximum value is equivalent to the last [index] of the list.Then pick a value at random, redo a listfile and when the [index] equalsyour value, show the picture: Or prepare a database with the name of the pictures, a field for the index,pick at random and lookup the name according to this index.-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Nicolas Verhaeghe
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:
default value from Lookup (was Grant, please help me) (1997)
Firesite cache vs webcat cache (1997)
Help! WebCat2 bug (1997)
[WebDNA] Serial numbers and pricing for WebDNA 7.0 (2011)
Listserver problem (1997)
Re:PCS Customer submissions ? (1997)
Formating found categories (1997)
RE: Credit card processing - UK (1997)
many-to-one problem (1998)
Windows 2.1b4 WebCatalog available (1997)
I'm Baaaaaaaaaack - Questions! (2000)
RE: Help name our technology! (1997)
Uploading stuff along with variables (2006)
Confusing [protect] (long) (1999)
OT: IP addres checking (2003)
Emailer (WebCat2) (1997)
Emailer (1997)
Full text search (1999)
flushdatabases (2000)
[showif [getcookie otherDomain]=yes] inside a [TCP connect] will work? (2000)