I am not very knowledgeable about javascript. I can copy and paste and maybe tweak a bit. I am having trouble getting where I want to go, and I hope someone can either point me to a tutorial or guide me in writing a function to do what I need to do.
I looked at a thread elsewhere that showed me the following:
What I want to do is to click on an image and then show a form text area. If I click on the image again, I want to hide it.
I have a general idea, but need guidance. What do I need in my onClick? Do I need to do something different in the script? Must the script be in the header to work? It would be preferable not to put the script in the header.
All help is must appreciated.
MrsBean
I looked at a thread elsewhere that showed me the following:
Code:
<script type="text/javascript">
function showIt() {
document.form1.imageMap.style.display="block"; //set to visible
}
function hideIt() {
document.form1.imageMap.style.display="none"; //set to hidden
}
</script>
What I want to do is to click on an image and then show a form text area. If I click on the image again, I want to hide it.
Code:
<tr><td valign="top">
<img src="images/arrow.gif" border="0" align="left" onClick="somethingsomethingsomething" class="arrowcss" />
</td>
<td valign="top">Image Map(?) </td>
<td><div class="showme">
<textarea name="imageMap" cols="46" rows="5" id="imageMap"></textarea>
</div>
</td></tr>
I have a general idea, but need guidance. What do I need in my onClick? Do I need to do something different in the script? Must the script be in the header to work? It would be preferable not to put the script in the header.
All help is must appreciated.
MrsBean