I’ve already got a background image. But i’m builid a gallery which would have different categories. If i select a category the images would load up in little squares and then when i select any of them i want it to change a named id’s content…
e.g.
Any good tips would be appreciated immensely.
What i’m trying to do are two items.
-
Change the color of the navigation box to a solid color.
-
change the image source of an id “grouptabs” when clicked
<div id="random">
<img id="grouptabs" src="/u/i/1920x1200.jpg" />
</div>
This is what i’m trying to get to…
Thanks for all your suggestions
Generally this is what you’re looking for:
This works with a setup like:
1
2
3
4
So the image is being loaded in grouptab (the full size). In CSS you should specify that an a-element within class thumbnails is having a border and no bgcolor. The BG color is handled by the jquery click event.
Hopefully this helps.
//
EDIT: try this:I’m not sure if you are using this setup:
or
Because there is a difference. In the first case my scripts works. In the second, you need the style (background-color) applied to $(this) instead of $(this).parent()