By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,299 Members | 1,141 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,299 IT Pros & Developers. It's quick & easy.

Change a divider graphic on the fly

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.