I'm stuck with a code that I just can't get to excecute
I'm trying to change the visibility on <div id="one"> from hidden to visible, when my image <img src="supervip.png" id="supervip" /> is clicked.
(The div is set to hidden in the style sheet)
This is my script that I put in the head-tag:
I've also tried it with variations of functions, and I also tried to make the image clickable in the html and calling a function, like this <img src="supervip.png" id="supervip" onclick="function ()" />
I, however, managed to give myself a new problem...
I want the rest of the page to get darker when an image is open, so I added a black <div id="background"> width 50% opacity to the html. I put it below the images, but above the rest of the content. I made it hidden and wanted i to be visible when you click the image, so I wrote that in the supervip.onclick function like this: