Jump to content

kelt

Newbie
  • Posts

    1
  • Joined

  • Last visited

kelt's Achievements

Explorer

Explorer (1/14)

0

Reputation

  1. всем доброе время суток. воспользовался скриптом с 3го поста <script> function popupImage(img, pname, W, H){ image = new Image(); image.src = img; X = (window.screen.availWidth / 2) - (W / 2); if (window.screen.availHeight - 24 < H) { Y = 0; W += 17; H = window.screen.availHeight - 24; } else { Y = (window.screen.availHeight / 2) - (H / 2 + 12); } params = "scrollbars=yes, status=yes, resizable=1, width=" + W + ",height=" + H + ",left=" + X + ",top=" + Y; wID = window.open ('', name, params); with(wID.document){ open(); write('<hmtl><head><title>'+pname+'</title></head><body style="margin: 10px; padding: 0; "><a href="#" onclick="window.close();" alt="Click to close the window" title="Click to close the window">'); write('<img src="'+img+'" border="0"/></a></body></html>'); close(); } } </script> все чудесно работает, но проблема в том что непонятно как оно работает=( если кому нетрудно добавти пояснения по строкам плз P.S. заранее спс
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy