I want to have a dialog similar to this:

I thought this approach would work, but I think I was wrong:
Javascript
$('.ImageDialogDiv').dialog({
position: [98, 223],
resizable: false,
closeOnEscape: false,
class: 'OverwriteDialogOverflow',
title: $('#hiddenDialogElements').html(),
open: function (event, ui) { $(".ui-dialog-titlebar-close").hide(); }
});
CSS
.OverwriteDialogOverflow
{
overflow: visible;
}
HTML
<div id = "dialogDiv" class = "ImageDialogDiv"></div>
<div id = "hiddenDialogElements">
<button id = "hiddencloseButton">Close</button>
<div id = "hiddenArrowButtons">
<button class = "ArrowButtonDialogLeft" onclick = "ShowNextImage(-1)" ></button>
<button class = "ArrowButtonDialogRight" onclick = "ShowNextImage(1)" ></button>
</div>
</div>
When I try to move the arrows or close the button in the dialog box, turn it off and you wonβt see it. I would say that the addition .OverwriteDialogOverflowwill take care of this.
Suggestions?
source
share