View Full Version : CSS Image Gallery: onclick instead of hover
High2k
07-04-2008, 01:44 PM
How can i make my enlarged images open upon mouse click rather than hover? I'm finding that if you have lots of thumbnails arranged in rows, you cannot access some of the thumbnails in the middle because they are covered by th last enlarged image. I thought that if the mouseover was changed to click then this would solve that problem. Unless someone has a better idea??
rangana
07-04-2008, 01:50 PM
Since this is in the CSS section, you'll get out of CSS and would involve yourself into Javascript.
With that said, you can try:
document.getElementById('idOFelement').onclick=function()
{document.getElementById('idOFanotherELEMENT').style.fontWeight='bold';}
If you need help on setting the code above,
Please show us your code or better a link
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.