Code

Discussion on Region Detection (jQuery)

Discussion on Region Detection (jQuery)

Cart 42 sales

designcise supports this item

Supported

9 comments found.

In Fact, I seek an example like your switcher script, but for a different use (I would like to display a banner).

Do I think that it is necessary to use a condition?

Thanks !

Mick

Kindly email me via the contact form on my profile page and I’ll see what I can do. The example for what you’re looking for is already given in the example file that comes with it; for further understanding you must read the help file.

Hello,

Do You have an example to display a div on an overflight (hover) ?

Thanks for your assistance !

Mick

There’s an example in the examples.html file that comes bundled with the file you purchased, there’s a hover example in there too. If you’re having difficulties implementing it, kindly read the documentation or send me an email via my profile page with details of what you’re trying to achieve and a zipped example file you’re working on. Thanks!

Hi,

Sent you PM ! Thanks

I’ve been using this on a site I’m planning on launching soon that has a rather difficult and unconventional way of showing a drop-down menu. This plugin works awesomely and much better than the hacky setTimeout() method I was using previously.

hey, thanks for the feedback :)! glad you found it useful.

Wow, what fast responses and great services. Consider this sold, especially after implementing hover support into the plugin so quickly!

thanks :)!

havent had my morning coffee yet so not fully awake – but i saw the working demo and looks impressive am just wondering what you would use it for?

it’s being used in http://codecanyon.net/item/switcher-jquery/161099 .. so basically, for dropdown menus, if you were to click anywhere outside the menu’s region, it should close it or hide it or something ..

a user wanted to use it to show advertisements if the mouse was moved away from the window’s region by creating a div which was 1px smaller than the window size ..

so the uses can be numerous if you think about it ..

Wow! what a quick reply!

wrapper div sounds like a plan!

consider it bookmarked! may get it in the week….

Thanks

No problem :)!

Hi daniyal, would this be able to detect a mouse going over the edge of the open browser window? Maybe having a small transparent border just inside the edge of the window? And with that, trigger a popup window? Don’t want much do i!

or you could simply make a wrapper div about 1px smaller than the window width/height and that region would be considered outside the region you intend to monitor, so that would work, but as for the border thing, it’s considered inside the region by the script.

Could this be expanded to check if a mouse hovers over a specific region outside of an element? I could see this being useful for dropdown menus that aren’t inside of a parent UL.

yes, with a bit of coding it surely can be; i’ll try this myself and get back to you with the results and might just push it forward as an update.

it was a fairly simple update, i’ll push it through after i update the documentation so stay tuned :)!

it is now updated to support both hover and click detection, and is available for purchase :)!

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey