javascript - Center the DIV Element popup -
I created a page in my page, and it seems -
; Div id = "progressThrobber" style = "display: none;" & Gt; & Lt; Img src = "/ btweb / images / deskTopIconLoading.gif" width = "200" height = "40" /> Loading ... for & lt; / Div & gt;
Now the function that appears as a popup on the page is below -
function show progress (divId) {var divElement = document. GetElementById (dividing); Divlement.style.display = ''; DivElement.className = 'progressThrobberStyle'; Divlement.innerHTML = '& lt; Table & gt; & Lt; Tr & gt; & Lt; Td align = "center" & gt; & Lt; Img src = "/ btweb / picture / desktopIcon Loading .gif" /> & Lt; / Td> & Lt; / Tr & gt; & Lt; Tr & gt; & Lt; Td nowrap = "nowrap" & gt; & Lt; B & gt; Loading ... & lt; / B & gt; & Lt; / Td> & Lt; / Tr & gt; & Lt; / Table & gt; '; Back true;
Border: 1px drain # 99 99 99; Cursor: default; Status: Completed; Left: 50%; Top: 50%; Width: 200px; Height: 100px; Margin: -100px 0 -50px; Z-index: 99; Padding: 15px 15px 15px 15px; }
In this situation even if the user has already been scrolled, it can not be found at the center. For example, if the user scrolls down a lot of pages And the submitted hits, I have to show a popup in the center.
Any thoughts?
Regards, Karan
Have you tried:
< Pre> Status: Fixed;
Comments
Post a Comment