Hide/Show images

Results 1 to 2 of 2

Thread: Hide/Show images

  1. #1
    Join Date
    Dec 1969

    Default Hide/Show images

    I have a textbox which I am entering numbers into and doing a calculation via onKeyUp. This is all working fine but I want to show or hide an image dependent upon the result of the calculation but I don&#039;t want to reload the page.<BR><BR>Also the image that I am wanting to hide is also a href.<BR><BR>Any ideas?

  2. #2
    Join Date
    Dec 1969

    Default RE: Hide/Show images

    javaScript:<BR><BR>function showHide()<BR>{<BR> oImg = document.getElementById("myImg");<BR> oImg.style.display = oImg.style.display == &#039;none&#039;?&#039;inline&#039;:&#039;none&#03 9;;<BR><BR>}

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts