I have a page where my content, which are images, scrolls down and has a fixed title on the side. I require the title on the side which is a fixed div, to change as the images roll up, to describe each image.
Please see http://kimcolemanprojects.com/artworks.html
thanks for any advice on how to achieve this.
angela
I’ve written some weeks ago a simple jQuery expression, so here’s a simple solution that fits to your requirements…
jQuery expression
Scroll Event
Fiddle
Update
To do it a bit nicer I’ve removed your placeholder
.title‘s and added its contents to your img-alt attributes:And your new HTML:
Fiddle
UPDATE
I’ve rebuild your link anchors and removed the "inline-onclick"-events:
Complete Site – Fiddle