By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,299 Members | 1,054 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,299 IT Pros & Developers. It's quick & easy.

add javascript to css image gallery

P: n/a
Hi all,

could someone show me how to add javascript functionality to a css
image gallery? I would like to adapt the gallery at
"http://www.cssplay.co.uk/menu/gallery_click.html" so that when a
thumbnail is clicked the larger image remains selected until another
thumb is clicked.

At the moment when I click a thumbnail the larger image appears, but if
I click anywhere else in the page or adjust my scrollbar the image
disappears.

Thanx.

Jul 19 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
kaizer bo wrote:
Hi all,

could someone show me how to add javascript functionality to a css
image gallery? I would like to adapt the gallery at
"http://www.cssplay.co.uk/menu/gallery_click.html" so that when a
thumbnail is clicked the larger image remains selected until another
thumb is clicked.

At the moment when I click a thumbnail the larger image appears, but if
I click anywhere else in the page or adjust my scrollbar the image
disappears.

Thanx.
For info, I'm using FF/WinXP and the image remains in place when
adjusting the scrollbar although it does disappear if I click elsewhere
on the page. However, If I take the focus off FF (i.e. to type this) and
then return to it, hovering over the image, the image disappears.
Jul 19 '06 #2

P: n/a
I noticed in Firefox it does appear to work fine, but the problem seems
to affect IE.
Jessica wrote:
kaizer bo wrote:
Hi all,

could someone show me how to add javascript functionality to a css
image gallery? I would like to adapt the gallery at
"http://www.cssplay.co.uk/menu/gallery_click.html" so that when a
thumbnail is clicked the larger image remains selected until another
thumb is clicked.

At the moment when I click a thumbnail the larger image appears, but if
I click anywhere else in the page or adjust my scrollbar the image
disappears.

Thanx.

For info, I'm using FF/WinXP and the image remains in place when
adjusting the scrollbar although it does disappear if I click elsewhere
on the page. However, If I take the focus off FF (i.e. to type this) and
then return to it, hovering over the image, the image disappears.
Jul 19 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.