Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [funkcja] Wyswietlanie PNG, w zaleznosci od przegladarki
Dende
post
Post #1





Grupa: Zarejestrowani
Postów: 32
Pomógł: 0
Dołączył: 17.01.2007

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


Moze komus sie przyda? =)
  1. <?
  2. function png($pngurl,$png_szerokosc,$png_wysokosc)
  3. {
  4. echo"<!--[if IE]>";
  5. echo"<img border='0' src='blank.gif' style=".'"'."width: ".$png_szerokosc."px; height: ".$png_wysokosc."px; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='".$pngurl."', sizingMethod='scale')".'"'." />";
  6. echo"<![endif]-->";
  7. echo"<![if !IE]>";
  8. echo"<img src='".$pngurl."' border='0'>";
  9. echo"<![endif]>";
  10. }
  11. ?>
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
pawkow
post
Post #2





Grupa: Zarejestrowani
Postów: 76
Pomógł: 7
Dołączył: 30.09.2006

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


czy to aby nie bez sensu (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif)
Nie lepiej, żeby funkcja w PHP sprawdzała przeglądarkę i w zależności od niej wyświetlała img (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif)
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: 31.12.2025 - 20:58