470,604 Members | 2,024 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,604 developers. It's quick & easy.

Change a divider graphic on the fly

JC
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?
Jul 23 '05 #1
1 1199
JC wrote on 21 mei 2004 in comp.lang.javascript:
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
</td><img style="width:1px;height:100%;" src="...
2) Where would I invoke this change? Obviously we won't know the
height of the table until the content renders, right?


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)
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by futurepy | last post: by
3 posts views Thread by Lucas Tam | last post: by
11 posts views Thread by Tarren | last post: by
2 posts views Thread by Jim Lewis | last post: by
4 posts views Thread by Gary Jackson | last post: by
1 post views Thread by icepick72 | last post: by
8 posts views Thread by Lord Zoltar | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.