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

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: 22.08.2025 - 16:00