473,320 Members | 2,000 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Thermometer / Gauge display.

Hi All,

On my site we are about to run a fundraising scheme.
I would like to display on there a thermometer to show how far we have got
to reach our total........

Does anybody know of a free example of this, or have they done this
themselves??

Thanks

Alex Stevens
Jul 19 '05 #1
1 5262
Alex Stevens wrote on 22 sep 2003 in
microsoft.public.inetserver.asp.general:
On my site we are about to run a fundraising scheme.
I would like to display on there a thermometer to show how far we have
got to reach our total........

Does anybody know of a free example of this, or have they done this
themselves??


Build it from scratch:

========= test.asp ==============

<%
' for 20%
pct=20

a=500*pct/100
b=500-a

%>
<div style=width:50px;float:left;>
<%=pct%> %
<div style="width:15px;height:500px;background.color:gr een;
padding-left:4px;padding-top:<%=b%>px;">
<div style="width:7px;height:<%=a%>px;background.color: red;">
</div></div></div>

<%
' for 63%
pct=63

a=500*pct/100
b=500-a

%>
<div style=width:50px;float:left;>
<%=pct%> %
<div style="width:15px;height:500px;background.color:gr een;
padding-left:4px;padding-top:<%=b%>px;">
<div style="width:7px;height:<%=a%>px;background.color: red;">
</div></div></div>

<%
' for 90%
pct=90

a=500*pct/100
b=500-a

%>
<div style=width:50px;float:left;>
<%=pct%> %
<div style="width:15px;height:500px;background.color:gr een;
padding-left:4px;padding-top:<%=b%>px;">
<div style="width:7px;height:<%=a%>px;background.color: red;">
</div></div></div>

<%
' for 47%
pct=47

a=500*pct/100
b=500-a

%>
<div style=width:50px;float:left;>
<%=pct%> %
<div style="width:15px;height:500px;background.color:gr een;
padding-left:4px;padding-top:<%=b%>px;">
<div style="width:7px;height:<%=a%>px;background.color: red;">
</div></div></div>

=================================

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: fiddlehead | last post by:
Hello. I'd to use gauge component in the code below. I want to show Queue.quantity in gauge (during running thread, every time when it changed). I don't know which event i must use. I find some...
2
by: Joe A | last post by:
I'm using Access 2002 on Windows XP PC, 500 megs ram, Front end/back end app. I have a simple form that draws a thermometer to indicate progress of code that is running. The thermometer form...
0
by: Thorsten Bast | last post by:
Hi, I'm sorry if this problem should have been sufficiently discussed here, but so far I could not find a satisfactory answer. I'm managing rental contracts with an access database and want to...
1
by: VM | last post by:
I'm working on a web form that displays the temperature of a certain room and I'd like to display the temperature as a thermometer where I send it the value (eg. 78 degrees F) and the thermometer...
1
by: RonY | last post by:
I have a dropdown which calls SetTimePeriod method on change the selection. In the JS function, I reset the field style.display based on what the selection is. This works fine with IE but not working...
12
by: Bhavesh1978 | last post by:
Hi guys I have got the temperature working which capture from the board and now i want to make thermometer capture from the temperature. How do i do it? any idea how and can you provide me a...
0
by: Inafuddle | last post by:
I have the same question as Alex Stevens: We are also about to run a fundraising scheme. I would like to display on there a thermometer to show how far we have got to reach our total........ ...
0
codeCruncher
by: codeCruncher | last post by:
Hi; Can any1 tell me wuts da differences between using gauge n progressbar? when shud we use which n y? I am trying to develop a program which tells the user when the program has finish executing....
0
by: =?Utf-8?B?bWFydGluMQ==?= | last post by:
All, I try to use gauge bar to indicate how much % of application run and also show clock before the app run complete. can anyone help this out? Thanks in advance, Martin
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.