Ask a Question related to ASP Database, Design and Development.
-
Joe...B #1
Dynamic invisable spacer
Hello People
Just a quick question and possibly quite a simple one! I want to be able to dynamically change the size of a spacer image in some html I have
It is a kind of calendar and what I want to do is use a start date for a week then extend the image to a certain date. I realise a need to turn each day into a set value of say 10 pixals then for every additional day add 10 pixals.
I already know how to retrieve the start day of the week for each value, but I don't know how to make the spacer strech
EG
Week Startin
04-11-200
Date to Strech to
04-18-200
Joe...B Guest
-
Spacer Image
Ok so I see all these sites that I like and I want to re-create my site to look something like these sites that I see. When I download these sites... -
dynamic drop downlists in an editable dynamic datagrid.
How would we address a situation where we have to put dynamic drop downlists in an editable dynamic datagrid. So the scenario is to populate a... -
dynamic menu system going to dynamic page
please can someone help me - im at the end of my tether! ive got an access db. Its got a list of words that is to be a menu system stored in it.... -
Dynamic text box within dynamic movie clip
I'm having a similar problem. On mine I noticed that although the text doesn't show and the border doesn't show, the cursor changes appropriately... -
export sliced image and spacer image
Greets, I build my website interface in FW slice it up but I leave a large space open where I will put text in using Frontpage 02. So what I am... -
Maarten #2
Re: Dynamic invisable spacer
See group CSS (or [url]www.w3schools.com[/url])
write according to what you need:
<table><tr><td style="width:200px; background-color:
red"> </td><tr></table>
"Joe...B" <anonymous@discussions.microsoft.com> schreef in bericht
news:82DED031-44C3-4AB3-B5A2-932CE1AFE015@microsoft.com...to dynamically change the size of a spacer image in some html I have.> Hello People,
>
> Just a quick question and possibly quite a simple one! I want to be ableweek then extend the image to a certain date. I realise a need to turn each>
> It is a kind of calendar and what I want to do is use a start date for a
day into a set value of say 10 pixals then for every additional day add 10
pixals.but I don't know how to make the spacer strech.>
> I already know how to retrieve the start day of the week for each value,>
> EG:
> Week Starting
> 04-11-2004
>
> Date to Strech to
> 04-18-2004
>
>
Maarten Guest
-
Joe...B #3
Re: Dynamic invisable spacer
Sorry I think you miss understood what I ment
I want to create a value like 70 from the following infomation
So every day = 10 pixals the results for the following EG: would be 7
EG
Week Startin
04-11-200
Date to Strech to
04-18-200
At the moment I only have the date values, how do I get a numeric value to return??
Thank
Joe...B Guest
-
Jeff Cochran #4
Re: Dynamic invisable spacer
On Mon, 12 Apr 2004 23:41:02 -0700, "Joe...B"
<anonymous@discussions.microsoft.com> wrote:
Might look at an HTML group since this isn't ASP or a database.>Just a quick question and possibly quite a simple one! I want to be able to dynamically change the size of a spacer image in some html I have.
(Hint: Modify the size of your image...)
Jeff
Jeff Cochran Guest
-
Joe...B #5
Re: Dynamic invisable spacer
This is an ASP question
Sorry you must have miss understood my first mail
What I'm try to do is create a numeric value from 2 dates.
Say a day is equal to 10 and the start of the week is 04-11-2004 and the last date is 04-19-2004 there are 8 days between the two dates and I want to create a value of 80.(10x8(number of days)
I will then write the value to CSS or HTML to increase the width of the image spacer
Thanks
Joe...B Guest
-
Jeff Cochran #6
Re: Dynamic invisable spacer
On Tue, 13 Apr 2004 04:36:04 -0700, "Joe...B"
<anonymous@discussions.microsoft.com> wrote:
This is an ASP Database group!>This is an ASP question!
It asked how to create a HTML image where the width changed due to a>Sorry you must have miss understood my first mail!
calculation, not how to calculate the days between dates. Sorry for
misunderstanding.
Using a database?>What I'm try to do is create a numeric value from 2 dates.
And this uses a database how?>Say a day is equal to 10 and the start of the week is 04-11-2004 and the last date is 04-19-2004 there are 8 days between the two dates and I want to create a value of 80.(10x8(number of days))
In a database?>I will then write the value to CSS or HTML to increase the width of the image spacer!
You're still in the wrong group. And I really don't see any issue in
your message. Is it that you don't understand how to use the DateDiff
function? See:
[url]http://www.devguru.com/Technologies/vbscript/quickref/datediff.html[/url]
And follow up in an ASP group, not an ASP database group.
Jeff
Jeff Cochran Guest
-
Joe...B #7
Re: Dynamic invisable spacer
Yes the datediff was a part of it
I guess I can work it out from here! I was trying to pull info from an XML document and convert it so I could find the beginning of the week and then create a value from the beginning of the week to a set date
<Project><tasks><task><Start>2004-16-04TO8:00:00</Start><Finish>2004-18-04TO8:00:00</Finish></task></tasks></Project><
'Load XM
set xml = Server.CreateObject("Microsoft.XMLDOM"
xml.async = fals
xml.load(Server.MapPath("ProjectTEST.xml")
'Load XS
set xsl = Server.CreateObject("Microsoft.XMLDOM"
xsl.async = fals
xsl.load(Server.MapPath("GantChartView.xsl")
'Finds Start date in all Tasks in xml documen
Dim sNodes(200,100
Dim sDate(200,100
Dim sTime(200,100
Dim sMonth(200,100
Dim sDay(200,100
Dim fdw(200,100
'Dim fdnw(200,100
'Dim fdwa(200,100
node=-
var=-
set oNodes=xml.selectNodes("/Project/Tasks/Task/Start"
for each oNode in oNode
node=node+
for i=0 to 9
sNodes(node,i) = oNode.tex
nex
' Write whole data and time for Start of task as seen in XML Documen
'response.Write sNodes(node,0) & "<br>
'Break up date into different variable
var=var+
for i=0 to 9
sTemp = sNodes( node,0
sDate( var,i ) = Mid( sTemp, 1, 10
sTime( var,i ) = Mid( sTemp, 13, 4
sMonth( var,i ) = Mid( sTemp, 6, 2
sDay( var,i ) = Mid( sTemp, 9, 2
next
'response.write (sDate(var,0)) & "<br>
'response.write (sTime(var,0)) & "<br>
'response.write (sMonth(var,0)) & "<br>
response.write "sDay " & (sDay(var,0)) & "<br>
'End Break up dates into variable
'Converts dates to beginning of week (Sunday
'today = Date()
' or
today = DateValue(sDate(var,0))
var=var+
for i=0 to 9
firstday = today + 1 - weekday(today, 1
fdw (var,i) = firstday
'fdnw (var,i) = firstday+
'fdwa (var,i) = firstday+1
nex
FirstDayWeek = fdw (var,0
'response.Write(fdnw (var,0)) & "<BR>
'response.Write(fdwa (var,0)) & "<BR>
'fsDay = Mid( FirstDayWeek, 3, 2
'response.Write(fsDay) & "<BR>
'imgSpaceDay = sDay (var,0)- fsDa
'response.write(imgSpaceDay
next
Joe...B Guest



Reply With Quote

