Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> nowe okno
eReS_
post
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)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
eReS_
post
Post #2





Grupa: Zablokowani
Postów: 5
Pomógł: 0
Dołączył: 8.02.2006

Ostrzeżenie: (0%)
-----


Zrobilem to tak:
  1. <script language='javascript' type='text/javascript'>
  2. function PopUp(url, name, width,height,center,resize,scroll,posleft,postop) {
  3. if (posleft != 0) { x = posleft }
  4. if (postop != 0) { y = postop }
  5. if (!scroll) { scroll = 1 }
  6. if (!resize) { resize = 1 }
  7. if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {
  8. X = (screen.width - width ) / 2;
  9. Y = (screen.height - height) / 2;
  10. }
  11. if (scroll != 0) { scroll = 1 }
  12. var Win = window.open( url, name, 'width='+width+',height='+height+',top='+Y+',left='+X+',resizable='+resize+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no');
  13. }
  14.  
  15. function ShowHide(id1, id2) {
  16. if (id1 != '') expMenu(id1);
  17. if (id2 != '') expMenu(id2);
  18. }
  19.  
  20. function expMenu(id) {
  21. var itm = null;
  22. if (document.getElementById) {
  23. itm = document.getElementById(id);
  24. } else if (document.all){
  25. itm = document.all[id];
  26. } else if (document.layers){
  27. itm = document.layers[id];
  28. }
  29.  
  30. if (!itm) {
  31. // do nothing
  32. }
  33. else if (itm.style) {
  34. if (itm.style.display == "none") { itm.style.display = ""; }
  35. else { itm.style.display = "none"; }
  36. }
  37. else { itm.visibility = "show"; }
  38. }
  39. //-->
  40. </script>
  41.  
  42. <a href="javascript:PopUp('eeee.php','Pager','500','450','0','1','1','1')">Link</a>


i ie, wywala komunikat po otwarciu strony ze zablokowal okienka ;/
a przeciez chocby na tym forum przy "zobacz histroie ostrzezen" jest taki pop-up i niewywala info za poblokowal ...
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 12.10.2025 - 13:20