By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,377 Members | 1,660 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,377 IT Pros & Developers. It's quick & easy.

Overlayed div's & mouseover event

P: 3
Hi all,

If I absolutely position div 'B' (z-index:2) over the top of div 'A' (z-index:1) so that div 'A' is completely obscured by div 'B', is there any way I can detect a mouseover of the obscured div 'A' ?

Regards,
zer0x
Nov 13 '07 #1
Share this Question
Share on Google+
4 Replies


iam_clint
Expert 100+
P: 1,208
The simple answer is no.

The long answer is kind of.

you can monitor where the mouse is on the page and manually decide if its over that element.
Nov 13 '07 #2

P: 3
Thank you Clint, quick reply!
Looks like I'm going to have to change my entire approach somewhat!

Regards,
zer0x
Nov 13 '07 #3

P: 3
you can monitor where the mouse is on the page and manually decide if its over that element.
I have managed to implement this solution with a little help from jQuery/UI.
It works surprisingly well, I was expecting a great deal of lag and/or bad behavior!

Thanks again Clint! I would probably still be searching for a non-existent solution if it was not for your quick reply!

Is it worth me posting the relevant code here? even though it is jQuery/UI ?

Regards,
zer0x
Nov 16 '07 #4

acoder
Expert Mod 15k+
P: 16,027
Is it worth me posting the relevant code here? even though it is jQuery/UI ?
Well, why not? It might help someone with a similar problem.
Nov 17 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.