Hey everyone,
I am making a menu based on "hiermenus" and doing pretty well despite my limited (but quickly growing) knowledge of DHTML.
I have a set of menu categories and within those categories a bunch of items. I can expand and collapse the categories OK and have the ability to show a certain number of items within the category if there is a long list.
I then want to make the menu scroll the remainder of the items. i.e. say 6 are visible out of 15, when the user mouses over an arrow the 6 items will scroll up hiding #1 and revealing #7 and so on.
The categories are all one <div> and the items are nested <divs>
The outer being <div class="item" id="itemmenu" where n is the category number.
The inner is <div id="_(m)"> where n is category, m is item number.
So it looks like
<div class="item" id="itemmenu1">
<div id="1_1"> </div>
<div id="1_2"> </div>
</div>
here is the problem...
If I use this code;
menuItem = ("1_2"
document.all(menuItem).style.background = "#ff000"
The correct item turns red - therefore I am obviously referencing the correct object.
However, if I use this;
menuItem = ("1_2"
document.all(menuItem).style.top = "200px"
it doesn't move.
I have tried all sorts of variations on quotes and using ":" instead of "=", but with no joy at all.
Does anyone have any idea on what I am missing.
THanks heaps in advance
Steve Davis
hey.you@hahaha.com.au
I am making a menu based on "hiermenus" and doing pretty well despite my limited (but quickly growing) knowledge of DHTML.
I have a set of menu categories and within those categories a bunch of items. I can expand and collapse the categories OK and have the ability to show a certain number of items within the category if there is a long list.
I then want to make the menu scroll the remainder of the items. i.e. say 6 are visible out of 15, when the user mouses over an arrow the 6 items will scroll up hiding #1 and revealing #7 and so on.
The categories are all one <div> and the items are nested <divs>
The outer being <div class="item" id="itemmenu" where n is the category number.
The inner is <div id="_(m)"> where n is category, m is item number.
So it looks like
<div class="item" id="itemmenu1">
<div id="1_1"> </div>
<div id="1_2"> </div>
</div>
here is the problem...
If I use this code;
menuItem = ("1_2"
document.all(menuItem).style.background = "#ff000"
The correct item turns red - therefore I am obviously referencing the correct object.
However, if I use this;
menuItem = ("1_2"
document.all(menuItem).style.top = "200px"
it doesn't move.
I have tried all sorts of variations on quotes and using ":" instead of "=", but with no joy at all.
Does anyone have any idea on what I am missing.
THanks heaps in advance
Steve Davis
hey.you@hahaha.com.au