You are here: Re: Transparent png's « HTML « IT news, forums, messages
Re: Transparent png's

Posted by Morgan on 09/16/05 23:31

Just use a little javascript to give the IE crowd gifs and the others
pngs.

This script would put either an gif image or a png image depending on
the results of the code.
(put this into your html code)

<script type="text/javascript">
<!--
if( navigator.appName=="Microsoft Internet Explorer")
{
document.write("<img src='directory/image.gif' />"); //put gif
location here
}
else
{
document.write("<img src='directory/image.png' />");// put png location
here
}
//-->
</script>

This is only an general example of what could be done, but its
certainly not crossbrowser as it should be.
I'll leave it to the others to make more sophisicated examples.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация