Results 1 to 4 of 4
  1. #1
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Mouseover buttons

    O'Reilly has a "bonus recipe" from Danny Goodman for creating "tri-state" graphic buttons (normal, mouseover, mousedown) with only three graphics for the entire row of buttons (using clever JavaScript code). I've made a little picture; here's the demo page:

    http://www.oreillynet.com/javascript/2003/...s1_example.html

    But... there seems to be a problem with the MouseDown event in my IE6. It doesn't fire for a click and release, and often does not light up for a click and hold. When it does, it changes back after about 4 seconds (if I hold still) or when I move the mouse. I don't know if this is an IE issue or something in the code. The article laying out the technique says it should work with both IE-specific and W3C compliant document syntax. Any ideas where the problem might be??
    Attached Images Attached Images

  2. #2
    5 Star Lounger
    Join Date
    Jul 2002
    Location
    Toronto, Ontario, Canada
    Posts
    1,139
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Mouseover buttons

    I think it's your IE. I tried it with IE 6.0.2800.1106CO - SP1 on Win2KSP3 and it worked just fine.

    I also tried it in Avant Browser (IE Engine) and Mozilla Firebird, and they both worked for me.

    I held the mousebutton down for 30 seconds and the graphic didn't change back from the MouseDown image until I moved the mouse (well trackball in my case).
    --
    Bryan Carbonnell - Toronto <img src=/S/flags/Ontario.gif border=0 alt=Ontario width=30 height=18> <img src=/S/flags/Canada.gif border=0 alt=Canada width=30 height=18>
    Unfortunately common sense isn't so common!!
    Visit my website for useful Word, Excel and Access code, templates and Add-Ins

  3. #3
    3 Star Lounger
    Join Date
    Jun 2001
    Location
    Maidstone, Kent, England
    Posts
    398
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Mouseover buttons

    On IE6 W98 it works OK, but it is very sensitive to mouse movement. Using my trackball it worked fine with fingers off the ball but if I kept fingers on the ball then the slight movement on the ball when clicking would fire the mosue over event again and turn the button red.

    HTH

    Peter

  4. #4
    Plutonium Lounger
    Join Date
    Oct 2001
    Location
    Lexington, Kentucky, USA
    Posts
    12,107
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Mouseover buttons

    I checked my Mozilla 1.3.1 also and they work fine here. I've got a cordless Logitech wheel mouse.

Posting Permissions

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