If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

Sorry, let me get more precise. I don't mean show, I meant make opaque; when the user clicks on 1 of 4 links on the page, the images corresponding to that link will not change, while all the other images will, say, get 50% opaque. Right now I've set up my HTML as:

Why shouldn't that work? Again, here's an example. It needs a lot of improvement (cross-browser css transition support, …) and has flaws (only supports one category at a time right now), it also uses jQuery which of course isn't needed. But just to show you that it is possible:

http://jsfiddle.net/Sy7EP/ (the nice transitions only work in webkit browsers because I didn't include all the vendor prefixes...)

Users who have thanked Airblader for this post:

Why shouldn't that work? Again, here's an example. It needs a lot of improvement (cross-browser css transition support, …) and has flaws (only supports one category at a time right now), it also uses jQuery which of course isn't needed. But just to show you that it is possible:

http://jsfiddle.net/Sy7EP/ (the nice transitions only work in webkit browsers because I didn't include all the vendor prefixes...)

You really should be able to get somewhere from there.

Thanks, I understand what the code is trying to accomplish, but I am still unable to implement it myself. I think I am adding the scripts wrong? Code:

So get more use out of this script, I'm trying to have one div already focused when the page loads with its own styling; I am also trying to have it so that when the link is clicked, the div/link styling will move from the current to the clicked link and stay there until a new link is clicked, at which point it'll change again. Is this new line I added in the script close?