/t5/dreamweaver-discussions/use-of-javascript-to-resize-div-heights/td-p/833048Dec 16, 2008
Dec 16, 2008
Copy link to clipboard
Copied
I'm using javascript to resize two divs (the 'navbar'
navigation div on the left of the page, and the 'mainContent' div
which sits to it's right).
The attached code shows how I'm doing it. The first three
lines are added to my template, and the remaining is the contents
of the javascript file (which I have not changed).
It used to work but as a result of making changes to my
website it seems to have stopped working. I've checked the paths.
Found the answer. I had changed the navbar to use a list for
the contents whereas before the contents were within paragraph
tags. So the call to the function needed to reflect this, ie to
become <body
onLoad="P7_equalCols2(0,'navbar','li','mainContent','p')">
/t5/dreamweaver-discussions/use-of-javascript-to-resize-div-heights/m-p/833049#M165313Dec 17, 2008
Dec 17, 2008
Copy link to clipboard
Copied
Found the answer. I had changed the navbar to use a list for
the contents whereas before the contents were within paragraph
tags. So the call to the function needed to reflect this, ie to
become <body
onLoad="P7_equalCols2(0,'navbar','li','mainContent','p')">
/t5/dreamweaver-discussions/use-of-javascript-to-resize-div-heights/m-p/833050#M165314Dec 17, 2008
Dec 17, 2008
Copy link to clipboard
Copied
LATEST
Found the answer. I had changed the navbar to use a list for
the contents whereas before the contents were within paragraph
tags. So the call to the function needed to reflect this, ie to
become <body
onLoad="P7_equalCols2(0,'navbar','li','mainContent','p')">