В этой статье описывается реализация JS окна в центре всплывающего окна. Поделитесь этим для вашей ссылки, следующим образом:
<! Doctype html public "-// w3c // dtd xhtml 1.0 transitional // en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <meta http-equiv = "content-type" content = "text/html; charset = utf-8"/> <title> js opup </title> </head> <body> <script src jquer. type = "text/javascript"> </script> <script> function opendialog (url, w, h) {var iTop2 = (window.screen.availheight - 20 - h)/2; var ilft2 = (window.screen.avewidth - 10 - w) / 2; var params = 'menubar: no; dialogheight =' + h + 'px; dialogwidth =' + w + 'px; dialogleft =' + ileft2 + 'px; dialogtop =' + itop2 + 'px; resisizable = yes; scrollbars = 0; resize = 0; center = yes; location: no; nost; var adddiv =' diviv = 'difiv =' difiv = 'difiv =' difiv = 'var addviv =' difiv = wardiv = 'var addiv = 0; style = 'слева: 0px; top: 0px; положение: абсолютная; $ (document.body) .append (adddiv); // Добавить маску как фоновое окно.For more information about JavaScript related content, please check out the topics of this site: "Summary of JavaScript switching effects and techniques", "Summary of JavaScript search algorithm skills", "Summary of JavaScript animation effects and techniques", "Summary of JavaScript errors and debugging techniques", "Summary of JavaScript data structures and algorithm skills", "Summary of Алгоритмы и методы обхода JavaScript »и« Сводка использования математических операций JavaScript ».
Я надеюсь, что эта статья будет полезна для каждого программирования JavaScript.