Change opacity of image when hover mouse over

Thank you @dvdbridges! It works now. However, previously, the rating scores would be recorded but now it doesn’t so I thought it is because it is not in jscode. I tried changing it myself by looking at other codes and came up with this

but I got this error instead.

I am not sure what is the correct function is but I have also tried the mouse.click_name and gotten the same error.