I have been suffering for a week now, I can’t understand anything, the work is identical in all browsers ...) Thanks in advance for your help. A site is written in which, when you click on the search button, a modal window appears in which the search result is displayed ... The result is shown in 1 image.
Yes, but there is one thing, the cross hid behind the modal window, but there is no scrollbar, although the information goes beyond the limit of the modal window;
Here is the code.
When you click on the search button: onclick="otpravka();"
Sending function:
function otpravka() { if (xmlHttp.readyState == 4 && xmlHttp.status == 200) { var div = document.getElementById('ModalBox'); div.innerHTML = xmlHttp.responseText; $(document).ready(function () { $('#ModalBox').modal(); return false; }) } }
Here is a div with a modal window:
<div id="ModalBox" align="center" class="none" style="z-index:3200;"> </div>
Here is the CSS to div:
#simplemodal-container { background-color:#333; border:4px solid #444; color:#bbb; height:550px; overflow-y:hidden; padding:12px; width:60%; z-index:3200; } #simplemodal-container #basic-modal-content { padding:28px; } #simplemodal-container a { color:#FF0; } #simplemodal-container a.modalCloseImg { background:url(img/x.png) no-repeat; cursor:pointer; height:29px; position:absolute; right:0; top:0; width:25px; z-index:5000; } #simplemodal-container p { color:#bbb; } #simplemodal-container td { color:#bbb; } #simplemodal-overlay { background-color:#000; cursor:wait; } #simplemodal-overlayclose { background-color:#FFF; }
The plug-in library: jquery.simplemodal.js.