Dynamic invisable spacer

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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....
    4. 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...
    5. 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...
  3. #2

    Default 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">&nbsp;</td><tr></table>




    "Joe...B" <anonymous@discussions.microsoft.com> schreef in bericht
    news:82DED031-44C3-4AB3-B5A2-932CE1AFE015@microsoft.com...
    > 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 Starting
    > 04-11-2004
    >
    > Date to Strech to
    > 04-18-2004
    >
    >

    Maarten Guest

  4. #3

    Default 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

  5. #4

    Default Re: Dynamic invisable spacer

    On Mon, 12 Apr 2004 23:41:02 -0700, "Joe...B"
    <anonymous@discussions.microsoft.com> wrote:
    >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.
    Might look at an HTML group since this isn't ASP or a database.
    (Hint: Modify the size of your image...)

    Jeff
    Jeff Cochran Guest

  6. #5

    Default 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

  7. #6

    Default Re: Dynamic invisable spacer

    On Tue, 13 Apr 2004 04:36:04 -0700, "Joe...B"
    <anonymous@discussions.microsoft.com> wrote:
    >This is an ASP question!
    This is an ASP Database group!
    >Sorry you must have miss understood my first mail!
    It asked how to create a HTML image where the width changed due to a
    calculation, not how to calculate the days between dates. Sorry for
    misunderstanding.
    >What I'm try to do is create a numeric value from 2 dates.
    Using a database?
    >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))
    And this uses a database how?
    >I will then write the value to CSS or HTML to increase the width of the image spacer!
    In a database?

    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

  8. #7

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139