With an Image, just give the <IMG> tag an ID attribute: <img ID="MyId" src=".....">
Then in VBScript just reference the ID:
<script language=vbscript>
sub MyID_OnClick()
MYID.Style.display="None" 'This is just an example
End Sub
</script>
With Text, you want to use a <SPAN> Tag and give it an ID attribute. Reference the same way as above.
Hope this helps! Tazzmann