Change a divider graphic on the fly

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JC

    Change a divider graphic on the fly

    I have a web page that consists of a table holding a menu column, a
    content column, and a narrow column in-between that holds a
    1-pixel-wide graphic that serves to divide the two.

    I'm currently hard-coding the height of this image, but I would like
    it to be able to stretch to fit a long page. So I want to be able to
    change the height of this image on the fly after the rest of the
    content has loaded.

    2 questions:

    1) What would be the code to do it, and

    2) Where would I invoke this change? Obviously we won't know the
    height of the table until the content renders, right?
  • Evertjan.

    #2
    Re: Change a divider graphic on the fly

    JC wrote on 21 mei 2004 in comp.lang.javas cript:
    [color=blue]
    > I have a web page that consists of a table holding a menu column, a
    > content column, and a narrow column in-between that holds a
    > 1-pixel-wide graphic that serves to divide the two.
    >
    > I'm currently hard-coding the height of this image, but I would like
    > it to be able to stretch to fit a long page. So I want to be able to
    > change the height of this image on the fly after the rest of the
    > content has loaded.
    >
    > 2 questions:
    >
    > 1) What would be the code to do it, and[/color]

    </td><img style="width:1p x;height:100%;" src="...
    [color=blue]
    > 2) Where would I invoke this change? Obviously we won't know the
    > height of the table until the content renders, right?[/color]

    don't need to know, but beware, the above is not tested


    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    Working...