Forum Moderators: open
This in the HEAD works if I had just 1 image:
<script type="text/javascript">
document.write("<style type='text/css'>#zero {visibility:hidden;}</style>");
</script> I could then give the image an id="zero".
However I want to do that thoughout the site with several images per page, so normally I'd like to assign them to a class, e.g. class="zero". What Javascript works for a class? Ive tried unsuccessfully:
<script type="text/javascript">
document.write("<style type='text/css'>.zero {visibility:hidden;}</style>");
</script> Thanks for any help.