CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge -> General/Other

 Random Header

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.