![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 267 Pomógł: 1 Dołączył: 10.08.2007 Ostrzeżenie: (0%) ![]() ![]() |
Witam,
Mogę na stronie wyświetlać różne rozmiary reklam. Tylko przy rozdzielczości 1024x768 i niższych rozjeżdża mi się strona. Potrzebowałbym kod, który sprawdzałby rozdzielczość, z jaką user przegląda stronę, I wtedy bym napisał sobie warunek, że gdy jest mniejsza od 1024x768 to wyświetla mniejsze reklamy, a jeżeli jest wyższa to większe. Mógłby ktoś zarzucić kodem do sprawdzania rozdzielczości? już znalazłem, gdyby ktoś potrzebował Kod <html> <head> <BODY> <CENTER> <script LANGUAGE="JavaScript"> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin var screen_width = null; var screen_height = null; var resolution = null; if (navigator.javaEnabled()) { var toolkit = java.awt.Toolkit.getDefaultToolkit(); var screen_size = toolkit.getScreenSize(); screen_width = screen_size.width; screen_height = screen_size.height; resolution = toolkit.getScreenResolution(); } // End --> </SCRIPT> <script LANGUAGE="JavaScript"> <!-- Begin if ((screen_width != null) && (screen_height != null) && (resolution != null)) { document.write('Screen Width: '+screen_width+'<BR>'); document.write('Screen Height: '+screen_height+'<BR>'); document.write('Screen Resolution: '+resolution+'<BR>'); } else { document.write('<center><P>'); document.write('I am sorry but we could not determine<P>'); document.write('the details of this screen. You might<P>'); document.write('not have Java enabled in this browser.<P>'); document.write('</center>'); } // End --> </SCRIPT> </body> </html> ALBO KRÓTSZA WERSJA Ten post edytował xamrex 3.06.2010, 09:21:25
Powód edycji: [thek]:
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 20.08.2025 - 05:14 |