Jump to content

Recommended Posts

I've got a test page I've cobbled together from 3 different scripts. It's essentially a dropdown that changes images when its choices are rolled over or clicked, then it applies the choice to a form field that will be hidden in the final script.

 

I'm trying to put in an onblur to the div tag that makes the first image revert to it's default. But it doesn't work. I'm not sure if there's something else I need to do.

 

Here's the page I'm working with: http://www.mergecreate.com/test25i.html

Link to comment
https://forums.phpfreaks.com/topic/210474-revert-image-on-blur-not-working/
Share on other sites

I just took a look @ the page.. what function fires when the user leaves the menu? add in your custom code to that function and you should be alright.. the on blur will not happen because you're never focussed on it.. try onMouseOut instead if you're adamant about using an event on that particular element :), however that will fire whenever you hover over each individual link inside the div :).. you could also try onMouseLeave but I don't think that is crossbrowser friendly :) jquery .hover() will solve all your problems

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.