So I have the first part working - from transparent to yellow, but how do I make it turn back to transparent?
I am thinking something like that?
Expand|Select|Wrap|Line Numbers
- <script>
- function switch_image()
- {
- if (unclicked) <--- don't know the syntax to do that
- window.document.star.src = 'star_click.jpg'
- else
- window.document.star.src = 'star_unclick.jpg'
- }
- </script>
- <body>
- <a href="#" onClick = switch_image()"><img src="star_unclick.jpg" name= "star"/></a>
- </body>