Results 1 to 2 of 2

Thread: Keep mouseover on active class.

  1. #1
    Join Date
    Aug 2012

    Keep mouseover on active class.

    I made a little image selector. When you click, the background image changes, when your mouse over, the image comes into color. The problem I'm having is I don't know how to keep the images seperate. if your click image 2, then mouse over image 1, image 1 pops up in color. I want to make the mouseover and mouse events only activate on the active thumbnail.


  2. #2
    Join Date
    Aug 2012
    Here's what i'm using for my images.

    <a  href="#" onclick="document.getElementById('hdrdiv').className ='hdr1';showitem('toggle1');hideitem('toggle2');hideitem('toggle3');hideitem('toggle4');hideitem('toggle5')"><img src="<?php bloginfo('template_directory'); ?>/contentbg/1black.jpg"></a>
    What i'm looking for is something like If class = hdr1, mouseover event

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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