tamac
|
Posted: 05/07/2004, 4:19 AM |
|
I am using CC ASP Templates
I would like to have a random header (i.e. I have 5 different headers images)display every time the page loads. Any way to do this?
Thank you.
|
|
|
peterr
Posts: 5971
|
Posted: 05/07/2004, 8:59 AM |
|
I think that you can use one header with a Label, but then assign random image(s) to the Label. For example:
fldLabel = "<img src=...>
You can find various ASP functions for displaying random images at http://www.google.com/search?q=asp+display+random+image
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
tamac
|
Posted: 05/07/2004, 11:37 AM |
|
Sorry, I am not very good at programming........
Where would I put the fldLabel code?
Thanks for the info.
|
|
|
peterr
Posts: 5971
|
Posted: 05/07/2004, 1:47 PM |
|
Add an empty label field to your form, click on its properties, change its name to "Label" and check the "Html" property.
Then click the form properties and add a Before Show event with the code:
fldLabel = "abc"
Once you get this to work then you can replace the text "abc" with an HTML image tag or some code that displays random images that you can find on Google.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
|