Fw: Rotate HTML code-such a thing?
by "Ted Lontine" <tedster07(at)qwest.net>
|
Date: |
Wed, 1 Aug 2001 13:07:37 -0600 |
To: |
hwg-techniques(at)hwg.org |
|
todo: View
Thread,
Original
|
|
----- Original Message -----
From: "Ted Lontine" <tedster07(at)qwest.net>
To: "Virginia Blalock" <virginia(at)visionsnet.com>
Sent: Wednesday, August 01, 2001 12:31 PM
Subject: Re: Rotate HTML code-such a thing?
> Virginia:
>
> If your server is a Windows server supporting ASP, you can use VBScript to accomplish
> this. As an example, I have a page set to show the salutation "Good Morning", "Good
> Afternoon", or "Good Evening" depending on the time of day. You can set variables to
> trigger when you want the HTML code changed i.e. Date, Time, Random Numbers, etc.
>
> My code looks something like this:
>
> <%
> ' Set Time Zone Difference and Mountain Daylight Time Variables
> DIM MDT, TZD
> ' TZD is one hour behind this server
> TZD = -1
> ' Get Date & Time
> MDT = DateAdd("h", TZD, CDate(Date() & " " & Time()))
> DIM varTime
> varTime=Hour(Time)-1
> If varTime <= 12 THEN
> Response.write "Good Morning"
> ElseIf varTime<= 18 THEN
> Response.write "Good Afternoon"
> ElseIf varTime > 18 THEN
> Response.write "Good Evening"
> End If
> %>
>
> You could easily do Response.Write "<table><tr><td width='100%'>"
> for example, or any other HTML code you wish!
>
> Learning VBScript is relatively easy. I learned a basic amount in my spare time (enough
to
> get by) so if I can learn it I'm sure anybody could. :)
>
> hth
> Ted Lontine
> email: Ted.Lontine(at)mt3solutions.com
> web: www.mt3solutions.com
>
>
> ----- Original Message -----
> From: "Virginia Blalock" <virginia(at)visionsnet.com>
> To: <hwg-techniques(at)hwg.org>
> Sent: Wednesday, August 01, 2001 9:28 AM
> Subject: Rotate HTML code-such a thing?
>
>
> > I have been searching for something(scripts) to rotate pieces of HTML code.
> > Is there such a thing? I have two snippets of ad HTML code that I need to
> > rotate on a page. I have seen ad rotator scripts but they are all just
> > image/link simple types.
> >
> > Virginia's Visions Esportfans
> > http://www.visionsnet.com http://www.esportfans.com
> > virginia(at)visionsnet.com virginia(at)esportfans.com
> >
> >
>
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA