Results 1 to 2 of 2

Thread: CSS Image Gallery: onclick instead of hover

  1. #1
    Join Date
    Apr 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question CSS Image Gallery: onclick instead of hover

    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??

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    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:
    Code:
    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
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •