I made a post before, but I don’t feel I explained myself verywell. I wanted to edit it to remove it, but as I’m new here I can’t.
ok so I currently have a table, with 2 (visible) rows.
<table>
<tr>
<td>
MAIN MENU HERE
</td>
</tr>
<div id=’phase1′>
<tr>
<td>
[button]click here to expand
</td>
</tr>
</div>
<div id=’phase2′>
<tr>
<td>
expanded part, bla bla bla
[button]click here to un-expand
</td>
</tr>
</div>
</table>
Basically, I want to click to expand the “expanding part”. I’ve been trying to do it myself, but I can’t figure out how to do it. First of all, I want the “click here” part to be an image that changes when you hover over it. Then when you click it, it disappears, and instead “expanded part” appears.
So, how should I do this?
Should I make a button, with a picture over it, that changes on hover? (not sure how to do this). Once clicked, the div ‘phase1′ of the button should disappear (style.display==’none’ ?), and the user should instead see something else, ‘phase2’.
But I can’t get anything to work! So I need help. (Keep in mind i’m new to javascript)
-am I approaching this the right way? Do you recommend another way?
-if so, how would I make the button? How do I put the two pictures on it?
Thanks!