PC Review


Reply
Thread Tools Rate Thread

Conditional Page Background Color

 
 
=?Utf-8?B?VGVycmlibGUgVG9t?=
Guest
Posts: n/a
 
      13th Feb 2007
First, this isn't *really* a FrontPage question--but I am using Frontpage as
my HTML editor so here goes...

The following code is from the HTML Status Bar--a 'customizable' portion of
the display at the cash register when using the Point of Sale module of
Microsoft's Retail Management Sytem:

<body onload="doStartup()" scroll="no" STYLE="position:absolute; top:0px;
left:0px; width:100%; height:100%; padding:10px; font:bold 13pt verdana;
color:white;
filterrogidXImageTransform.Microsoft.Gradient(GradientType=1,
StartColorStr='#8eb6d9', EndColorStr='#000000')">

What I want to do is make the background & font colors conditional on a
customers credit limit.

Basically, I want to do this:
<if> CreditLimit < 0
<then>
<body onload [see above, except font color = black, gradient starts and ends
with FF0000]>
</then>
<else [default background code above]>
</else>
</if>

But HTML doesn't have an if statement...

Ideas?

Tom
--
Stop fishing for e-mail
 
Reply With Quote
 
 
 
 
Thomas A. Rowe
Guest
Posts: n/a
 
      13th Feb 2007
Suggest you visit
http://www.microsoft.com/dynamics/rms/default.mspx
or
http://www.microsoft.com/smallbusine...e/default.aspx
as this is not a FP related issue.
--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


"Terrible Tom" <(E-Mail Removed)> wrote in message
news:CAE17F07-9562-4DC8-A140-(E-Mail Removed)...
> First, this isn't *really* a FrontPage question--but I am using Frontpage as
> my HTML editor so here goes...
>
> The following code is from the HTML Status Bar--a 'customizable' portion of
> the display at the cash register when using the Point of Sale module of
> Microsoft's Retail Management Sytem:
>
> <body onload="doStartup()" scroll="no" STYLE="position:absolute; top:0px;
> left:0px; width:100%; height:100%; padding:10px; font:bold 13pt verdana;
> color:white;
> filterrogidXImageTransform.Microsoft.Gradient(GradientType=1,
> StartColorStr='#8eb6d9', EndColorStr='#000000')">
>
> What I want to do is make the background & font colors conditional on a
> customers credit limit.
>
> Basically, I want to do this:
> <if> CreditLimit < 0
> <then>
> <body onload [see above, except font color = black, gradient starts and ends
> with FF0000]>
> </then>
> <else [default background code above]>
> </else>
> </if>
>
> But HTML doesn't have an if statement...
>
> Ideas?
>
> Tom
> --
> Stop fishing for e-mail



 
Reply With Quote
 
Trevor L.
Guest
Posts: n/a
 
      13th Feb 2007
Terrible Tom wrote:
> First, this isn't *really* a FrontPage question--but I am using
> Frontpage as my HTML editor so here goes...
>
> The following code is from the HTML Status Bar--a 'customizable'
> portion of the display at the cash register when using the Point of
> Sale module of Microsoft's Retail Management Sytem:
>
> <body onload="doStartup()" scroll="no" STYLE="position:absolute;
> top:0px; left:0px; width:100%; height:100%; padding:10px; font:bold
> 13pt verdana; color:white;
> filterrogidXImageTransform.Microsoft.Gradient(GradientType=1,
> StartColorStr='#8eb6d9', EndColorStr='#000000')">
>
> What I want to do is make the background & font colors conditional on
> a customers credit limit.
>
> Basically, I want to do this:
> <if> CreditLimit < 0
> <then>
> <body onload [see above, except font color = black, gradient starts
> and ends with FF0000]>
> </then>
> <else [default background code above]>
> </else>
> </if>
>
> But HTML doesn't have an if statement...
>
> Ideas?
>
> Tom
> --
> Stop fishing for e-mail


It may not be an FP question as such, but it is web related.

You would need some Javascript to change the colour.

How would you pass the Credit Limit to the JS?
Is it known when this page is opened?
Perhaps the page is called from another page, where Credit Limit is known,
or is it stored on a database?
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
----------------------------------------

 
Reply With Quote
 
Mike Mueller
Guest
Posts: n/a
 
      14th Feb 2007
That's the basic train of thought I was one. If the info is
being pulled from a db, then it most likely using a server
side script- which could also be used to change the colors
based on the credit
Another option would be to use a cookie, and use either js
or server scripting to read the cookie and set a color


"Trevor L." <Trevor_L.@Canberra> wrote in message
news:u$(E-Mail Removed)...
: Terrible Tom wrote:
: > First, this isn't *really* a FrontPage question--but I
am using
: > Frontpage as my HTML editor so here goes...
: >
: > The following code is from the HTML Status Bar--a
'customizable'
: > portion of the display at the cash register when using
the Point of
: > Sale module of Microsoft's Retail Management Sytem:
: >
: > <body onload="doStartup()" scroll="no"
STYLE="position:absolute;
: > top:0px; left:0px; width:100%; height:100%;
padding:10px; font:bold
: > 13pt verdana; color:white;
: >
filterrogidXImageTransform.Microsoft.Gradient(GradientType=1,
: > StartColorStr='#8eb6d9', EndColorStr='#000000')">
: >
: > What I want to do is make the background & font colors
conditional on
: > a customers credit limit.
: >
: > Basically, I want to do this:
: > <if> CreditLimit < 0
: > <then>
: > <body onload [see above, except font color = black,
gradient starts
: > and ends with FF0000]>
: > </then>
: > <else [default background code above]>
: > </else>
: > </if>
: >
: > But HTML doesn't have an if statement...
: >
: > Ideas?
: >
: > Tom
: > --
: > Stop fishing for e-mail
:
: It may not be an FP question as such, but it is web
related.
:
: You would need some Javascript to change the colour.
:
: How would you pass the Credit Limit to the JS?
: Is it known when this page is opened?
: Perhaps the page is called from another page, where Credit
Limit is known,
: or is it stored on a database?
: --
: Cheers,
: Trevor L.
: [ Microsoft MVP - FrontPage ]
: MVPS Website: http://trevorl.mvps.org/
: ----------------------------------------
:


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Sum Based on Cell Background Color Thomas M. Microsoft Excel Worksheet Functions 6 16th Oct 2009 01:22 AM
Conditional Formatting background color for more than three zmenloans Microsoft Access 3 9th Jun 2009 02:16 PM
Conditional Formating Same Color as Form Background Samantha Microsoft Access Form Coding 3 29th Feb 2008 05:03 PM
Change background color using conditional formatting =?Utf-8?B?cGZh?= Microsoft Excel Worksheet Functions 4 21st Aug 2007 02:56 PM
Conditional Formating Background Color =?Utf-8?B?dGFua2VybWFu?= Microsoft Excel Misc 2 31st Jan 2007 02:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:58 PM.