![]() |
![]() |
![]() ![]()
Post
#1
|
|
Grupa: Zablokowani Postów: 5 Pomógł: 0 Dołączył: 8.02.2006 Ostrzeżenie: (0%) ![]() ![]() |
jak w zgodnosci z XHTML 1.0 Strict, zrobic linka, ktory bedzie otwieral nowe okienko (ale takie zuborzone, bez paska nawigacji, menu)
|
|
|
![]() |
![]()
Post
#2
|
|
![]() Grupa: Przyjaciele php.pl Postów: 2 258 Pomógł: 16 Dołączył: 21.09.2004 Skąd: Kielce Ostrzeżenie: (0%) ![]() ![]() |
Cytat na tamtej stronie jest wlasnie w/w przyklad smile.gif naprawdę? nie wydaje mi się. Kod <script type="text/javascript"> function popupWin(link,attribs) { var popupWin = null; popupWin = window.open(link,'winPopup',attribs); } function popupWindows() { if(!document.getElementsByTagName) { return; } var scrW = screen.availWidth; var scrH = screen.availHeight; var anchors = document.getElementsByTagName("a"); for (var i = 0; i < anchors.length; i++) { var anchor = anchors[i]; var linkDest = anchor.getAttribute("href"); var relIndex = anchor.getAttribute("rel"); var relSplit = relIndex.split("|"); var windowAttributes = ""; if(relSplit[0] == "popup") { if (relSplit[1] > scrW) { pW = scrW - 10; } else { pW = relSplit[1]; } if (relSplit[2] > scrH) { pH = scrH - 40; } else { pH = relSplit[2]; } scrX = (scrW - pW - 10) * .5; scrY = (scrH - pH - 30) * .5; var windowAttributes = "width=" + pW + ",height=" + pH + ",left=" + scrX + ",top=" + scrY + ",screenX=" + scrX + ",screenY=" + scrY; windowAttributes += ",location=" + relSplit[4] + ",resizable=" + relSplit[4] + ",scrollbars=" + relSplit[4]; anchor.setAttribute("href", "javascript:popupWin('" + linkDest + "','" + windowAttributes + "')"); } } } window.onload = popupWindows; </script> to jest przykład ze strony którą podałem. -------------------- -------------
------ |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 20.06.2025 - 13:56 |