473,322 Members | 1,538 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Hiding <DIV> containing <INPUT> tags onmouseout

Hi,

I'm trying to use the Visibility Style attribute for a Div to effectively
PopUp a lightweight window with some additional context-sensitive
information, when a user mouses over a given field(s). The popping-up seems
to work just fine; it's the tearing down that's giving me grief. If I stick
a onmouseout event on the same input field that caused the
onmouseover/pop-up, it starts to flicker 'cos the <divis placed for
esthetically desirable reasons over the original field. So I stuck the
onmouseout on the DIV, but when the mouse moves from the DIV background to
one of the display INPUT fields (still within the DIV boundries) IE6 says
I've moused out of the DIV and my code sets it back to "hidden" prematurely.

I'm looking at sticking an itty-bitty "close" button at the bottom of the
DIV to get around the problem (there are also buttons
(next/previous/refresh) active on the sub-Div layer that will result in the
DIV vanishing, but the onmouseout would've been good. Is there anyway, short
of an onmousemove on the Body and a check to see if the coordinates fall on
my Div (while it is visible) that would make the DIV appear as a solid block
as far as the mouseout is concerned?

Cheers Richard Maher.
Apr 6 '07 #1
2 3334
On Fri, 6 Apr 2007 11:30:15 +0800, "Richard Maher"
<ma******@hotspamnotmail.comwrote:
>Hi,

I'm trying to use the Visibility Style attribute for a Div to effectively
PopUp a lightweight window with some additional context-sensitive
information, when a user mouses over a given field(s). The popping-up seems
to work just fine; it's the tearing down that's giving me grief. If I stick
a onmouseout event on the same input field that caused the
onmouseover/pop-up, it starts to flicker 'cos the <divis placed for
esthetically desirable reasons over the original field. So I stuck the
onmouseout on the DIV, but when the mouse moves from the DIV background to
one of the display INPUT fields (still within the DIV boundries) IE6 says
I've moused out of the DIV and my code sets it back to "hidden" prematurely.

I'm looking at sticking an itty-bitty "close" button at the bottom of the
DIV to get around the problem (there are also buttons
(next/previous/refresh) active on the sub-Div layer that will result in the
DIV vanishing, but the onmouseout would've been good. Is there anyway, short
of an onmousemove on the Body and a check to see if the coordinates fall on
my Div (while it is visible) that would make the DIV appear as a solid block
as far as the mouseout is concerned?

Cheers Richard Maher.
Put a little X in the top RHS corner which the user clicks to close it
down.

<div id="PopUpHelp">
<span class="SomeTitleBar">
<span="LeftFiller"></span>
<span="RHSBox"
onclick="PsuedoWindowClose('PopUpHelp')"
title="Close">X</span>
</span>
<span class="SomeContent"></span>
</div

I think it's a bad design principle to have your code do things which
you think (as a designer) that the user would 'like' to happen - that
gives the user the impression that the user is not actually in control
of what's going on - which, I personally feel, is a confidence sapping
event. My inclination is to close down any web-page I visit that does
things I haven't personally asked for (open a popup, play background
music, run flash, whatever, ...)
Apr 6 '07 #2
Hi,
Put a little X in the top RHS corner which the user clicks to close it
down.

<div id="PopUpHelp">
<span class="SomeTitleBar">
<span="LeftFiller"></span>
<span="RHSBox"
onclick="PsuedoWindowClose('PopUpHelp')"
title="Close">X</span>
</span>
<span class="SomeContent"></span>
</div
Sounds good, I've been using a button but I think I'd prefer this RHSBox
thingy. Where (not on my w3shools <spantag page) can I find all of the
valid syntax and options for this <SPAN=tag? LeftFiller sounds good (as
I'm using several &nbsp to pad out stuff 'cos IE doesn't like "white-space:
pre" without the <!DOC stuff) and RHSBox looks more light-weight than my
button and <label>Close for button.
I think it's a bad design principle to have your code do things which
you think (as a designer) that the user would 'like' to happen - that
gives the user the impression that the user is not actually in control
of what's going on - which, I personally feel, is a confidence sapping
event. My inclination is to close down any web-page I visit that does
things I haven't personally asked for (open a popup, play background
music, run flash, whatever, ...)
Agreed, in this case if the content of a given field is in Italics then the
user knows if they mouseover it then the pop-up will appear. This is just
part of my (quasi-real-world) example to illustrate an on-demand server
look-up for queue status information. If the user mouseovers a queue name,
the current status information for that queue is retrieved from the server.
It's just to show how, whether anyone wants to do it is up to them. I still
think it would be nice(r) if the mouseout of the div (as a block) would
work. But again if someone wants to track clientX/Y in and out of given
coordinates while DIV is visible/invisible then that's up to them also.

Thanks for the help.

Cheers Richard Maher

"Jasbird" <Ja*****@houdini.comwrote in message
news:qv********************************@4ax.com...
On Fri, 6 Apr 2007 11:30:15 +0800, "Richard Maher"
<ma******@hotspamnotmail.comwrote:
Hi,

I'm trying to use the Visibility Style attribute for a Div to effectively
PopUp a lightweight window with some additional context-sensitive
information, when a user mouses over a given field(s). The popping-up
seems
to work just fine; it's the tearing down that's giving me grief. If I
stick
a onmouseout event on the same input field that caused the
onmouseover/pop-up, it starts to flicker 'cos the <divis placed for
esthetically desirable reasons over the original field. So I stuck the
onmouseout on the DIV, but when the mouse moves from the DIV background
to
one of the display INPUT fields (still within the DIV boundries) IE6 says
I've moused out of the DIV and my code sets it back to "hidden"
prematurely.

I'm looking at sticking an itty-bitty "close" button at the bottom of the
DIV to get around the problem (there are also buttons
(next/previous/refresh) active on the sub-Div layer that will result in
the
DIV vanishing, but the onmouseout would've been good. Is there anyway,
short
of an onmousemove on the Body and a check to see if the coordinates fall
on
my Div (while it is visible) that would make the DIV appear as a solid
block
as far as the mouseout is concerned?

Cheers Richard Maher.

Put a little X in the top RHS corner which the user clicks to close it
down.

<div id="PopUpHelp">
<span class="SomeTitleBar">
<span="LeftFiller"></span>
<span="RHSBox"
onclick="PsuedoWindowClose('PopUpHelp')"
title="Close">X</span>
</span>
<span class="SomeContent"></span>
</div

I think it's a bad design principle to have your code do things which
you think (as a designer) that the user would 'like' to happen - that
gives the user the impression that the user is not actually in control
of what's going on - which, I personally feel, is a confidence sapping
event. My inclination is to close down any web-page I visit that does
things I haven't personally asked for (open a popup, play background
music, run flash, whatever, ...)

Apr 6 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Philo | last post by:
How do I select all <div> tags except those which contain a <table> tag somewhere within them? Example XML: <********************** sample input ***********************> <txtSectionBody>...
3
by: KathyB | last post by:
Hi, totally new to the div show/hide thing. I have some rows in a table. When I first load the page, I only want to see divs where the divID=ForView. When I load now, I see BOTH rows...even...
8
by: F. Da Costa | last post by:
Following is a snippet of html in which I hide a whole table and try to hide a single row. Here is my question (plz don't chew my head off if its css related instead): Why does the divTable...
3
by: TR | last post by:
Is it possible with CSS to prevent this wrapping alignment with a checkbox with a nested label? This is the label of the checkbox that wraps beneath it I'd prefer it looked like...
2
by: Nicky | last post by:
hi, all I know we can do this by some jscript. But is there a way to do it in asp.net c# code? In our project, users could sumit a piece of html code and I need to remove all html tag out. What's...
8
by: Patrick | last post by:
Hi you all, I've just downloaded the latest beta of the .Net Framework and Visual Studio Expression 2005 edition. I only created a simple ASPX file with some code-beside/behind (however you want...
1
by: alanchinese | last post by:
let's say i have codes like this: <form> <div> <input type="text" name="in1" size="10"> <input type="text" name="in2" size="100"> <!-- more inputs --> </div> <form> can javascript calculate...
7
by: simchajoy2000 | last post by:
Hi, I am just a javascript beginner so maybe this is a simple problem but I am trying to do some rollovers on images in a separate <div>. Here is the relevent piece of my code: <html>...
4
by: plumba | last post by:
Let me explain.... I have a form (most of which you guys have helped me with!!). The initial problem I was having is that it was holding the data in the fields after submit, I resolved this by...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.