Javascript & Gallery Help (easy for you guys?)

Hi Guys,

I’ve been progressing along ok on the CSS side of things but am having some trouble on the javascript side of things. I’ve decided to jazz a site up with a scrolling gallery from a template i’m using but unfortunately I don’t know how to get the main image to change on a click of the smaller one? can anybody please help a brother out!

here’s the site template - http://dev.jeffking.co.uk/index.html

All i’m after is the big main image to change to the same (larger) image of the smaller one in the scrollbar below the main frame.

I’m pretty sure I will need to tweak the JS to enable me to do this but i don’t know how or what to do. please can someone help me!!

Many thanks!

Hi Guys,

I’ve been progressing along ok on the CSS side of things but am having some trouble on the javascript side of things. I’ve decided to jazz a site up with a scrolling gallery from a template i’m using but unfortunately I don’t know how to get the main image to change on a click of the smaller one? can anybody please help a brother out!

here’s the site template - http://dev.jeffking.co.uk/index.html

All i’m after is the big main image to change to the same (larger) image of the smaller one in the scrollbar below the main frame.

I’m pretty sure I will need to tweak the JS to enable me to do this but i don’t know how or what to do. please can someone help me!!

Many thanks!

You have to be fairly careful when modifying these scripts to suit you purposes. If you’ve changed any id or div names in the html, you also need to update the JavaScript code.

I can’t see the problem from a quick glance, but if you’ve made any changes like those I mention above, check those things first.

Also note that there is a forum specifically for JavaScript. Perhaps a moderator will move this thread over to there.

EDIT: actually, on a second glance, it looks like the code that would alter the large images when thumbnails are clicked is missing altogether. I may be wrong, but maybe check and see if yu’ve lfet out any code. (I’m not a JS person, as you can see.)