Figure out what you want to mouse over and use the hover:
$('#myselect').hover(
function()
{
$(".bar", "#view").dialog("open");
},
function()
{
$(".bar", "#view").dialog("close");
}
);
EDIT:
I looked again at your question, and am making a HUGE assumption that you have not used dialog previously so here is more information:
Assume you have an element you want to make a dialog:
<div id="view">
<div class="bar ui-dialog" style="padding:0px;" id="bar"></div>
</div>
Assume you have another element that you want to mouse over to show/hide that dialog:
<div id="myselect"></div>
your dialog script only needs to be:
$(document).ready(function()
{
$(".bar", "#view").dialog({
autoOpen: false,
height: 30,
width: '100%',
textAlign : "justify",
marginLeft : "auto",
marginRight:"auto"
});
});
Note the added autoOpen: false;
which makes it closed originally.