Skip to main content
Dec 16, 2008 4:42 PM UTC
Answered

Use of javascript to resize div heights

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.

Can anyone suggest why it might be failing?

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer
Dec 17, 2008 2:38 PM UTC
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')">

2 replies

Correct answer
Dec 17, 2008 2:38 PM UTC
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')">
Translate
Dec 17, 2008 2:38 PM UTC
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')">
Translate